Package moul :: Package file :: Module wdysini :: Class FloatString
[hide private]
[frames] | no frames]

Class FloatString



object --+    
         |    
     float --+
             |
            FloatString

Float with a slightly different representation
>>> FloatString(1.0)
1
>>> str(FloatString(1.0))
'1'
>>> FloatString(0.0)
0.0
>>> str(FloatString(0.0))
'0.0'


Instance Methods [hide private]
  __str__(self)
str(x)
  __repr__(self)
repr(x)

Inherited from float: __abs__, __add__, __coerce__, __div__, __divmod__, __eq__, __float__, __floordiv__, __ge__, __getattribute__, __getformat__, __getnewargs__, __gt__, __hash__, __int__, __le__, __long__, __lt__, __mod__, __mul__, __ne__, __neg__, __new__, __nonzero__, __pos__, __pow__, __radd__, __rdiv__, __rdivmod__, __rfloordiv__, __rmod__, __rmul__, __rpow__, __rsub__, __rtruediv__, __setformat__, __sub__, __truediv__

Inherited from object: __delattr__, __init__, __reduce__, __reduce_ex__, __setattr__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__str__(self)
(Informal representation operator)

 
str(x)
Overrides: float.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: float.__repr__
(inherited documentation)