మూస:Number to word
Converts an integer in the range -999,999 to 999,999 into a cardinal number or ordinal number in the English language.
Usage
[మార్చు]{{Number to word|integer[|zero=zero][|adj=on][|us=on]}}
integer: Required. A natural number in the range -999,999 to 999,999.
zero: Optional. The value to use when the number is 0. Default is "zero" for cardinal numbers, "zeroth" for ordinal numbers. Can be made empty or, for example, "none", "seed" or "one before the first" as appropriate for the context.
adj: Optional. If the value is "on", the output is an ordinal number, otherwise it is a cardinal number.
us: Optional. If the value is "on", the output of numbers does not include "and" to separate hundreds from smaller values, nor to separate thousands from hundreds. This accords with American usage as described at English numerals.
Examples
[మార్చు]{{Number to word|-999999|adj=on}} {{Number to word|-1001|us=on}} {{Number to word|-235|us=on|adj=on}} {{Number to word|-100}} {{Number to word|-30}} {{Number to word|0|zero=not a sausage|adj=on}} {{Number to word|30}} {{Number to word|100}} {{Number to word|235|us=on|adj=on}} {{Number to word|1001}} {{Number to word|999999|adj=on}} {{Number to word|999999|adj=on|ord=on}}
produces:
negative-nine-hundred-ninety-nine-thousand-nine-hundred-and-ninety-nine negative one thousand one negative-two-hundred-thirty-five negative one hundred negative thirty thirty one hundred two-hundred-thirty-five one thousand and one nine-hundred-ninety-nine-thousand-nine-hundred-and-ninety-nine nine-hundred-ninety-nine-thousand-nine-hundred-and-ninety-ninth
See also
[మార్చు]- Template:Cardinal to word
- Template:Ordinal to word
- Template:Cardinal to word/0 to 19
- Template:Cardinal to word/0 to 99
- Template:Cardinal to word/0 to 999
- Template:Cardinal to word/0 to 999999
- Template:Ordinal to word/0 to 19
- Template:Ordinal to word/0 to 99
- Template:Ordinal to word/0 to 999
- Template:Ordinal to word/0 to 999999