ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:Number to word/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਆਜ਼ਾਦ ਵਿਸ਼ਵਕੋਸ਼ ਤੋਂ

Converts a given integer into a cardinal number or ordinal number in the English language. Anything between 10126 and -10126 is supported, as well as some larger numbers such as one centillion and one millinillion.

{{Number to word|integer[|zero=zero][|adj=on][|us=on][|ord=on]}}

integer: Required. A natural number in the range of 10126 and -10126 is, as well as some larger numbers such as one centillion and one millinillion.

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 hyphenated.

ord: 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}} negative-ਨੌ-ਸੌ-ninety-ਨੌ-ਹਜ਼ਾਰ-ਨੌ-ਸੌ-and-ninety-ਨੌ
{{Number to word|-1001|us=on}} negative ਇੱਕ ਹਜ਼ਾਰ ਇੱਕ
{{Number to word|-235|us=on|adj=on}} negative-ਦੋ-ਸੌ-thirty-ਪੰਜ
{{Number to word|-100}} negative ਇੱਕ ਸੌ
{{Number to word|-30}} negative thirty
{{Number to word|0|zero=not a sausage|adj=on}} not-a-sausage
{{Number to word|30}} thirty
{{Number to word|100}} ਇੱਕ ਸੌ
{{Number to word|235|us=on|adj=on}} ਦੋ-ਸੌ-thirty-ਪੰਜ
{{Number to word|1001}} ਇੱਕ ਹਜ਼ਾਰ and ਇੱਕ
{{Number to word|999999|adj=on}} ਨੌ-ਸੌ-ninety-ਨੌ-ਹਜ਼ਾਰ-ਨੌ-ਸੌ-and-ninety-ਨੌ
{{Number to word|999999|adj=on|ord=on}} ਨੌ-ਸੌ-ninety-ਨੌ-ਹਜ਼ਾਰ-ਨੌ-ਸੌ-and-ninety-ninth
{{Number to word|9999999999999999}} ਨੌ quadrillion ਨੌ ਸੌ ninety-ਨੌ ਟ੍ਰਿਲੀਅਨ ਨੌ ਸੌ ninety-ਨੌ ਬਿਲੀਅਨ ਨੌ ਸੌ ninety-ਨੌ ਮਿਲੀਅਨ ਨੌ ਸੌ ninety-ਨੌ ਹਜ਼ਾਰ ਨੌ ਸੌ and ninety-ਨੌ

See also

[ਸੋਧੋ]