Jump to content

සැකිල්ල:Spellnum per MOS/doc

විකිපීඩියා වෙතින්

Converts numerals to words if appropriate per the style guide MOS:NUMERAL. The first unnamed parameter is the numeral to be evaluated. All optional parameters of {{number to word}} are accepted by this template.

Editors using this template are responsible for checking its output against the detailed guidance of MOS:NUMERAL.

  • Non-integers and values less than zero are given in numerals (e.g. 0.5, -3).
  • Integers from zero to nine are spelled out in words (e.g. five).
  • For integers greater than or equal to ten:
    • By default, numbers expressible in one or two words are spelled out (e.g. fifty-six), and numbers requiring three or more words are given as numerals (e.g. 310).
    • If the argument "forcenum" is given with a value of "true" (or equivalent per Template:Yesno), integers greater than or equal to ten are always expressed as a numeral.
  • Numbers greater than one million are rounded to at most two significant figures when expressed with words.
Case Input Default output Output with forcenum =
"true" or equivalent
negative or non-integer -3−3−3
1.51.51.5
integer less than 10 9නවයනවය
integer requiring two or fewer words 54පනහ-සතර54
8000අට දහස8,000
integer requiring more than two words 320320320
integer greater than one million 12000000දොළහ million12,000,000
1206000012 million12,060,000
3500000035 million35,000,000
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Spellnum_per_MOS/doc&oldid=535516" වෙතින් සම්ප්‍රවේශනය කෙරිණි