4.3.1.2 RealField_decimal Objects

class RealField_decimal
Representation of the real field using the Python decimal type.
RealField_decimal( )

sage: R = RealField_decimal(); S = RealField_mpf()
sage: R(1) + S(1)
2.0
sage: S(1.1) - R(1.2)
-0.0999999999999999111822
sage: R.pi() * S.pi()
9.86965056
sage: R(2)*S(2)
4.0
sage: S(2) / R(3)
0.666666666666666666667
sage: R(2) < S(3)
True
sage: S(2.99) > R(3)
False

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

These methods are defined as follows: Instances of class RealField_decimal also have the following special methods:

__call__( x, [prec=0])

__cmp__( other)

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