4.2.2.1 Rational Objects

class Rational
Instances of class Rational have the following methods (in addition to inherited methods and special methods):

copy,$  $ denom,$  $ denominator,$  $ factor,$  $ height,$  $ mod_ui,$  $ numer,$  $ numerator,$  $ order,$  $ parent,$  $ set_si,$  $ set_str,$  $ str

These methods are defined as follows:

copy( )

denom( )

denominator( )

factor( )

height( )

The max absolute value of the numerator and denominator of self, as an Integer.

mod_ui( )

numer( )

numerator( )

order( )

parent( )

set_si( )

set_str( )

str( )

Instances of class Rational also have the following special methods:

__reduce__( )

See About this document... for information on suggesting changes.