Package sympycore :: Package arithmetic :: Module numbers :: Class Float
[hide private]
[frames] | no frames]

Class Float

source code


Represents floating-point numbers.

Float is a wrapper of mpf from mpmath.lib.



Instance Methods [hide private]
 
__abs__(self) source code
call graph 
 
__add__(self, other) source code
 
__div__(self, other) source code
 
__eq__(self, other) source code
call graph 
 
__float__(self) source code
 
__ge__(self, other) source code
 
__gt__(self, other) source code
call graph 
 
__hash__(self)
hash(x)
source code
call graph 
 
__init__(self, val, prec=53)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
call graph 
 
__int__(self) source code
 
__le__(self, other) source code
 
__lt__(self, other) source code
call graph 
 
__mul__(self, other) source code
 
__ne__(self, other) source code
call graph 
 
__neg__(self) source code
call graph 
 
__nonzero__(self) source code
call graph 
 
__pos__(self) source code
 
__pow__(self, n) source code
 
__radd__(self, other) source code
 
__rdiv__(self, other) source code
call graph 
 
__repr__(self)
repr(x)
source code
 
__rmul__(self, other) source code
 
__rpow__(self, other) source code
 
__rsub__(self, other) source code
 
__str__(self)
str(x)
source code
call graph 
 
__sub__(self, other) source code
call graph 
 
convert_val(self, x) source code
call graph 
 
to_str_data(self, sort=True) source code
call graph 

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]
  digits
  prec
  val

Inherited from object: __class__

Method Details [hide private]

__hash__(self)
(Hashing function)

source code 
call graph 
hash(x)
Overrides: object.__hash__
(inherited documentation)

__init__(self, val, prec=53)
(Constructor)

source code 
call graph 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
call graph 
str(x)
Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

digits

Get Method:
unreachable.digits(self)