| 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. | |
Returns whether the number is not actually one. | |
Return a / b, to context.prec precision. | |
Round if it is necessary to keep self within prec precision. | |
Fix the exponents and return a copy with the exponent in bounds. | |
Special case of add, adding 1eExponent | |
Returns 1 if self is even. | |
Returns whether the number is infinite | |
Returns whether self is an integer | |
Returns whether the number is not actually one. | |
Rescales so that the exponent is exp. | |
Returns a rounded version of self. | |
Rounds up (not away from 0 if negative.) | |
Also known as round-towards-0, truncate. | |
Rounds down (not towards 0 if negative) | |
Round 5 down | |
Round 5 to even, rest to nearest. | |
Rounds 5 up (away from 0) | |
Rounds away from 0. | |
| 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')
|
member_descriptor |
_exp = <member '_exp' of 'Decimal' objects>
|
member_descriptor |
_int = <member '_int' of 'Decimal' objects>
|
member_descriptor |
_is_special = <member '_is_special' of 'Decimal' objects...
|
dict |
_pick_rounding_function = {'ROUND_HALF_EVEN': '_round_ha...
|
member_descriptor |
_sign = <member '_sign' of 'Decimal' objects>
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:17 2007 | http://epydoc.sf.net |