IntegerName
IntegerName[n]
gives a string containing the full English name of the integer n.
IntegerName[n,qualifier]
gives a string conforming to the given qualifications.
Details and Options
- The default qualifier if none is specified is Automatic.
- For very large integers, only "Approximate" and "ApproximateWords" are supported.
- IntegerName automatically threads over lists.
- In IntegerName[n,qualifer], qualifier can be one or more of the following:
-
Automatic choose based on the input "DigitsWords" a combination of three-digit numbers and words "Words" words only "Approximate" the first few digits plus thousands, millions, etc. "ApproximateWords" the first few digits as words plus thousands etc. "Cardinal" cardinal form "Ordinal" ordinal form "Masculine" masculine form for ordinal or cardinal "Feminine" feminine form for ordinal or cardinal "Year" year form language specify a language {language,country} specify a language as used in a particular country {language,…,script} include a writing script (e.g. "Latin", "Cyrillic", ...) - IntegerName[n,…,Language->language] is equivalent to IntegerName[n,{language,…}].
Examples
open allclose allBasic Examples (3)
Scope (10)
IntegerName converts negative integers and zero:
IntegerName threads itself over elements of lists:
By default, a combination of digits and words would be used:
Get only the first few digits in the name:
A gender can be also specified:
The years can also be represented:
A country can be used to get local representations:
A writing script can be used to get alternate representations when available:
Properties & Relations (4)
The default string type is "DigitsWords":
For very large integers, "DigitsWords" and "Words" fall back to approximate forms:
Interpreter can convert the output of IntegerName back to an integer:
IntegerString gives strings of digits in different bases:
These are suitable for further machine processing:
IntegerName gives human-readable strings:
Neat Examples (3)
Display the length of number names as a function of the size of the number:
Find the longest number names in the set of whole numbers less than 1000:
Find how similar are languages based on the number names:
Use Transliterate to normalize the writing script and ClusteringTree to find the relations:
Text
Wolfram Research (2014), IntegerName, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerName.html (updated 2017).
CMS
Wolfram Language. 2014. "IntegerName." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/IntegerName.html.
APA
Wolfram Language. (2014). IntegerName. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntegerName.html