Package aquarium :: Package widget :: Module ThousandsCommas :: Class ThousandsCommas
[show private | hide private]
[frames | no frames]

Class ThousandsCommas

AquariumClass --+
                |
               ThousandsCommas


Method Summary
  __call__(self, n)
Return n after putting commas at the thousands marks.
    Inherited from AquariumClass
  __init__(self, ctx)
Set a reference to ctx.

Method Details

__call__(self, n)
(Call operator)

Return n after putting commas at the thousands marks.

n
  This is the number to output.

It's safe to accidentally call this method twice on the same number.

Note that this widget is only appropriate for English.  For instance,
in Germany, they reverse the meaning of commas and periods when writing
a decimal number.

Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net