Skabelon:Spellnum

Fra Wikipedia, den frie encyklopædi

elleve tusind syv hundrede tyve-en point to syv fire

Documentation icon Skabelondokumentation[vis] [redigér] [historik] [opfrisk]

Skabelon:Spellnum staver tallet i parameter 1 som det tilsvarende ord på dansk. Det viser, hvordan man siger et bestemt tal, f.eks.: 2,024 – "to tusind tyve-fire".

The largest number supported is over 20 trillion (20e12), with up to 5 decimal digits: 20,999,999,999,999.12345. Any commas in the input are ignored.

Usage:  {{spellnum|345}}          → three hundred forty-five
{{spellnum|345|sp=en}} → three hundred and forty-five   (has "and")
{{spellnum|0.64}}   → zero point six four
{{spellnum|12.015|case=u}} → Twelve point zero one five
{{spellnum|946000121}} → ni hundrede fyrre-seks million en hundrede tyve-en
{{spellnum|33+1/2}}     → tredive-tre point fem
{{spellnum|2450|adj=on}}   → to-tusind-fire-hundrede-halvtreds
{{spellnum|876000200000}}   → otte hundrede halvfjerds-seks milliard to hundrede tusind
{{spellnum|876E9}}   → otte hundrede halvfjerds-seks milliard
{{spellnum|5E9}}   → fem milliard
{{spellnum|1.32E13}}   → tretten billion to hundrede milliard

Optional parameters are:

case=U (or: case=L) – show as upper-case capital or lower-case.
sp=en (or: sp=us)   – show British variant spellings with "and".
adj=on   – show adjective form, with hyphens between words.