十進数表記における整数 n の各桁の数字をリスト形式で返す.
IntegerDigits[n,b]
b 進数における各桁の数字を整数 n のリストで返す.
IntegerDigits[n,b,len]
この書式を使うと,リスト長が len になるよう出力されるリストの左側にゼロが付け足される.
IntegerDigits[n,MixedRadix[blist]]
混合基数を底のリスト blist とともに使う.


IntegerDigits
十進数表記における整数 n の各桁の数字をリスト形式で返す.
IntegerDigits[n,b]
b 進数における各桁の数字を整数 n のリストで返す.
IntegerDigits[n,b,len]
この書式を使うと,リスト長が len になるよう出力されるリストの左側にゼロが付け足される.
IntegerDigits[n,MixedRadix[blist]]
混合基数を底のリスト blist とともに使う.
詳細

- IntegerDigitsは,標準的な位取り記数法と同じように,最上位桁を最初に与える.
- IntegerDigits[n]は n の持つ符号を無視する.
- 長さの指定 len が n を形成する桁数より小さいとき,len で指定される最小有効数字分の桁が返される.
- IntegerDigits[0]は{0}を返す.
- FromDigitsはIntegerDigitsの逆関数として使うことができる.
例題
すべて開く すべて閉じるスコープ (8)
アプリケーション (4)
ChampernowneNumberは連続する整数の集合である小数展開を持つ:
ChampernowneNumberと比較する:
特性と関係 (4)
上記は,NumberDecomposeを使っても得ることができる:
Quantityオブジェクトを使って同じ計算を行う:
関連項目
FromDigits IntegerString NumberExpand DigitCount IntegerLength DigitSum NumberDecompose RealDigits NumberDigit BaseForm NumberForm RomanNumeral IntegerReverse PalindromeQ IntegerExponent IntegerPart ContinuedFraction Tuples BitAnd BitOr BitLength
Function Repository: NthDigit GrayCode ToNegabinary BinaryCodedTernary
テクニカルノート
関連リンク
- MathWorld
- An Elementary Introduction to the Wolfram Language : More about Numbers
- An Elementary Introduction to the Wolfram Language : Operations on Lists
- An Elementary Introduction to the Wolfram Language : Pure Anonymous Functions
- An Elementary Introduction to the Wolfram Language : Writing Good Code
- NKS|Online (A New Kind of Science)
履歴
1991 で導入 (2.0) | 1996 で更新 (3.0) ▪ 2003 (5.0) ▪ 2015 (10.2)
テキスト
Wolfram Research (1991), IntegerDigits, Wolfram言語関数, https://reference.wolfram.com/language/ref/IntegerDigits.html (2015年に更新).
CMS
Wolfram Language. 1991. "IntegerDigits." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/IntegerDigits.html.
APA
Wolfram 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: 19-October-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: 19-October-2025]}