RealDigits

WMA link


RealDigits[n]

returns the decimal representation for the real number n as list of digits, together with the number of digits that are to the left of the decimal point.

RealDigits[n, b]

returns a list of the “digits” in base-b representation for the real number n.

RealDigits[n, b, len]

returns a list of len digits.

RealDigits[n, b, len, p]

return len digits starting with the coefficient of $b^p$.

Return the list of digits and exponent:

Return an explicit recurring decimal form:

The 500th digit of Pi is 2:

11 digits starting with the coefficient of 10^-3:

RealDigits gives Indeterminate if more digits than the precision are requested:

Return 25 digits of in base 10:

Precision