RealDigits - Maple Help

# Online Help

###### All Products    Maple    MapleSim

MmaTranslator[Mma]

 RealDigits
 return a list of digits

 Calling Sequence RealDigits(arguments)

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The RealDigits command returns a list of digits in the specified approximate real number.

Examples

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\left[\mathrm{Mma}\right]\right):$

Use the command with the Maple translation.

 > $\mathrm{RealDigits}\left(\mathrm{evalf}\left(\frac{9745}{9},15\right)\right)$
 $\left[\left[{1}{,}{0}{,}{8}{,}{2}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{8}{,}{0}\right]{,}{4}\right]$ (1)

Alternatively, you can use the FromMma command with the evaluate option specified.

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{RealDigits\left[N\left[9745/9, 15\right]\right]},\mathrm{evaluate}\right)$
 $\left[\left[{1}{,}{0}{,}{8}{,}{2}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{7}{,}{8}{,}{0}\right]{,}{4}\right]$ (2)

 See Also