Module s.l.cardinals_en

Part of stoqlib.lib

No module docstring
Function to_words Returns the integer as a cardinal number
Function to_words_as_money Returns a amount as a cardinal number
Function cardinal Returns the cardinal number of input n
Function aux Undocumented
Function p_100s print a cardinal description of a number < 1000
def to_words(num, unit_names=None):
Returns the integer as a cardinal number
Parametersnumthe integer
(type: int )
unit_namesa list of unit names
(type: list )
def to_words_as_money(num, currency_names):
Returns a amount as a cardinal number
Parametersnumthe amount
(type: int or float )
currency_namesa list of currency names Example: currency_names = ['dollar', 'dollars', 'cent', 'cents']
(type: list )
def cardinal(n):
Returns the cardinal number of input n
def aux(n, power=0):
Undocumented
def p_100s(n):
print a cardinal description of a number < 1000
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.