Package kiwi :: Module currency :: Class currency
[frames | no frames]

Type currency

object --+    
         |    
   Decimal --+
             |
            currency


A datatype representing currency, used together with the list and the framework
Method Summary
  format(self, symbol, precision)
    Inherited from Decimal
  adjusted(self)
Return the adjusted exponent of self
  as_tuple(self)
Represents the number as a triple tuple.
  compare(self, other, context)
Compares one to another.
  max(self, other, context)
Returns the larger value.
  min(self, other, context)
Returns the smaller value.
  normalize(self, context)
Normalize- strip trailing 0s, change anything equal to 0 to 0e0
  quantize(self, exp, rounding, context, watchexp)
Quantize self so its exponent is the same as that of exp.
  remainder_near(self, other, context)
Remainder nearest to 0- abs(remainder-near) <= other/2
  same_quantum(self, other)
Test whether self and other have the same exponent.
  sqrt(self, context)
Return the square root of self.
  to_eng_string(self, context)
Convert to engineering-type string.
  to_integral(self, rounding, context)
Rounds to the nearest integer, without raising inexact, rounded.

Generated by Epydoc 2.1 on Tue Feb 6 10:53:34 2007 http://epydoc.sf.net