RealDigits
Khả dụng
Extracts the decimal digits and exponent of a real number.
RealDigits[x]
RealDigits[x, b]
RealDigits[x, b, len]
RealDigits[x, b, len, n]
RealDigits[Pi, 10, 20]
→ {{3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9, 3, 2, 3, 8, 4}, 1}RealDigits[Pi, 10, 10][[1]]
→ {3, 1, 4, 1, 5, 9, 2, 6, 5, 3}RealDigits[1/7, 10, 12]
→ {{1, 4, 2, 8, 5, 7, 1, 4, 2, 8, 5, 7}, 0} Tất cả 6300 hàm ·
Dùng cái này từ một client MCP