Numerals
Package:
NUMERALS_PACKAGE. Registered bycreateEngine(); for a slimmer engine, register it explicitly (see choosing packages).
The same number can be written more than one way: 2024, “two thousand and
twenty-four”, MMXXIV, or 2024th. This page converts between the plain figure
and those spellings, useful for a heading, a contract, a clause number, or just
reading a Roman numeral off a monument.
In words
Section titled “In words”as words spells a number out in full, British style, with the “and” of “one
hundred and five”.
1234 as words // one thousand two hundred and thirty-four105 as words // one hundred and five1000000 as words // one millionA negative number is spelled with “minus”, and a decimal is read digit by digit
after “point” (3.5 is “three point five”).
As an ordinal
Section titled “As an ordinal”as ordinal gives the position form, the one with the little suffix, and gets
the awkward cases right (11th, not 11st).
3 as ordinal // 3rd22 as ordinal // 22nd11 as ordinal // 11thRoman numerals
Section titled “Roman numerals”as roman writes a number in Roman numerals, and from roman reads one back.
The reverse takes the numeral in "quotation marks", because the Roman letters
M C D L X V I are already used for units and names in the language (V is the
volt, C is a temperature), so a bare MMXXIV would be ambiguous.
2024 as roman // MMXXIV1994 as roman // MCMXCIV"MMXXIV" from roman // 2,024Roman numerals cover the classic range 1 to 3999. A number outside that, or a
string that is not a valid Roman numeral ("IIII", "IC"), is reported as an
error rather than guessed at.