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:
  • Automaticchoose 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
    languagespecify 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 all

Basic Examples  (3)

The name of a small integer:

The name of a larger integer:

The name of an ordinal integer in German:

Scope  (10)

IntegerName converts negative integers and zero:

IntegerName threads itself over elements of lists:

Avoiding digits:

By default, a combination of digits and words would be used:

Get only the first few digits in the name:

Using only words:

A language can be specified:

It also works with entities:

Get the cardinal form:

Get the ordinal form:

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:

Options  (1)

Language  (1)

Language may be specified as an option too:

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:

Wolfram Research (2014), IntegerName, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerName.html (updated 2017).

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

BibTeX

@misc{reference.wolfram_2024_integername, author="Wolfram Research", title="{IntegerName}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/IntegerName.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_integername, organization={Wolfram Research}, title={IntegerName}, year={2017}, url={https://reference.wolfram.com/language/ref/IntegerName.html}, note=[Accessed: 22-December-2024 ]}