| Home | Trees | Index | Help |
|
|---|
| Package picalo :: Package base :: Module Currency :: Class currency |
|
object--+ |Decimal--+ |number--+ | currency
| Method Summary | |
|---|---|
__new__(self,
value)
(Static method) | |
| Inherited from number | |
Returns a string representation of this number | |
| Inherited from Decimal | |
Returns the absolute value of self. | |
Returns self + other. | |
| |
| |
| |
Return self / other. | |
(self // other, self % other) | |
| |
Float representation. | |
self // other | |
x.__hash__() <==> hash(x) | |
Converts self to an int, truncating if necessary. | |
Converts to a long. | |
self % other | |
Return self * other. | |
| |
Returns a copy with the sign switched. | |
Is the number non-zero? | |
Returns a copy, unless it is a sNaN. | |
Return self ** n (mod modulo) | |
Returns self + other. | |
Swaps self/other and returns __div__. | |
Swaps self/other and returns __divmod__. | |
| |
Swaps self/other and returns __floordiv__. | |
Swaps self/other and returns __mod__. | |
Return self * other. | |
Swaps self/other and returns __pow__. | |
Return other + (-self) | |
Swaps self/other and returns __div__. | |
Return string representation of the number in scientific notation. | |
Return self + (-other) | |
Return self / other. | |
Return the adjusted exponent of self | |
Represents the number as a triple tuple. | |
Compares one to another. | |
Returns the larger value. | |
Returns the smaller value. | |
Normalize- strip trailing 0s, change anything equal to 0 to 0e0 | |
Quantize self so its exponent is the same as that of exp. | |
Remainder nearest to 0- abs(remainder-near) <= other/2 | |
Test whether self and other have the same exponent. | |
Return the square root of self. | |
Convert to engineering-type string. | |
Rounds to the nearest integer, without raising inexact, rounded. | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
| Class Variable Summary | |
|---|---|
| Inherited from Decimal | |
tuple |
__slots__ = ('_exp', '_int', '_sign', '_is_special')
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:17 2007 | http://epydoc.sf.net |