வார்ப்புரு:Number to word/doc

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.

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}} {{Number to word|-1001|us=on}} {{Number to word|-235|us=on}} {{Number to word|-100}} {{Number to word|-30}} {{Number to word|0|zeroth=not a sausage}} {{Number to word|10}} {{Number to word|30}} {{Number to word|90}} {{Number to word|99}} {{Number to word|100}} {{Number to word|235}} {{Number to word|1001}} {{Number to word|8000}} {{Number to word|999999}}

produces:

minus தொள்ளாயிரத்தி தொன்னூற்று ஒன்பது ஆயிரத்து, தொள்ளாயிரத்தி தொன்னூற்று ஒன்பது minus ஒன்று ஆயிரத்து ஒன்று minus இருநூற்று முப்பத்தி ஐந்து minus நூறு minus முப்பது zero பத்து முப்பது தொன்னூறு தொன்னூற்று ஒன்பது நூறு இருநூற்று முப்பத்தி ஐந்து ஒன்று ஆயிரத்து ஒன்று எட்டு ஆயிரம் தொள்ளாயிரத்தி தொன்னூற்று ஒன்பது ஆயிரத்து, தொள்ளாயிரத்தி தொன்னூற்று ஒன்பது

See also[தொகு]

"https://ta.wikipedia.org/w/index.php?title=வார்ப்புரு:Number_to_word/doc&oldid=1274141" இலிருந்து மீள்விக்கப்பட்டது