We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
gives a list of the decimal digits in the integer n.
IntegerDigits[n,b]
gives a list of the base b digits in the integer n.
IntegerDigits[n,b,len]
pads the list on the left with zeros to give a list of length len.
DetailsFind digits in a mixed radix system:
Scope (8)Bases larger than 10 can be used:
IntegerDigits threads itself over elements of lists:
Find the digits of 7 in different bases:
By default, IntegerDigits includes no leading zeros:
Pad all digit lists to be length 3:
Find digits using a MixedRadix specification:
Applications (4)ChampernowneNumber has a decimal expansion that is a concatenation of consecutive integers:
Compare to ChampernowneNumber:
Construct a van der Corput sequence:
The sequence forms a dense set that is equidistributed in the unit interval:
Illustrate low-discrepancy property of the sequence:
Properties & Relations (4)Find all combinations of 3 binary digits:
Pad digit lists to be the same length:
Express an amount of seconds in hours, minutes, and seconds:
It can also be obtained with NumberDecompose:
Perform the same computation using Quantity objects:
Neat Examples (1)Leading digits of factorials in base 100:
HistoryIntroduced in 1991 (2.0) | Updated in 1996 (3.0) ▪ 2003 (5.0) ▪ 2015 (10.2)
Wolfram Research (1991), IntegerDigits, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerDigits.html (updated 2015). TextWolfram Research (1991), IntegerDigits, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerDigits.html (updated 2015).
CMSWolfram Language. 1991. "IntegerDigits." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/IntegerDigits.html.
APAWolfram Language. (1991). IntegerDigits. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntegerDigits.html
BibTeX@misc{reference.wolfram_2025_integerdigits, author="Wolfram Research", title="{IntegerDigits}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/IntegerDigits.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_integerdigits, organization={Wolfram Research}, title={IntegerDigits}, year={2015}, url={https://reference.wolfram.com/language/ref/IntegerDigits.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4