Template:Cardinal to word/0 to 999999/testcases
Jump to navigation
Jump to search
This shows the output of the template given valid and invalid input.
Number values
In all tests, the named parameters take default values.
| Number | Output |
|---|---|
| 0 | zero |
| 10 | ten |
| 321 | three hundred and twenty-one |
| 4321 | four thousand, three hundred and twenty-one |
| 54321 | fifty-four thousand, three hundred and twenty-one |
| 654321 | six hundred and fifty-four thousand, three hundred and twenty-one |
| 999999 | nine hundred and ninety-nine thousand, nine hundred and ninety-nine |
| 1000000 | {{Cardinal to word/0 to 999999}}: value "1000000" is not a natural number in the range 0 to 999,999
|
| pi | {{Cardinal to word/0 to 999999}}: value "pi" is not a natural number in the range 0 to 999,999
|
| NaN | Expression error |
| (empty) | Expression error |
| (missing) | Expression error |
Named parameters
zero
| Number | zero= | Output |
|---|---|---|
| 0 | none | none |
| 111 | one hundred and eleven | |
| 222 | none | two hundred and twenty-two |
| 0 | (empty) | |
| 0 | (missing) | zero |