I have this 200 digit number where I want to get the IntegerDigits, but the decimal point is in the way.


What do I need to do to strip the decimal point to get a list of the digits?

  • 4
    $\begingroup$ Do you know RealDigits ? $\endgroup$
    – Artes
    Commented Nov 26, 2012 at 15:51
  • $\begingroup$ Artes, I'm new around here so please forgive the question but why didn't you simply put that as an answer? Is there a preference for comments rather than answers? $\endgroup$ Commented Nov 26, 2012 at 16:02
  • $\begingroup$ @WalkingRandomly, No you are completely right but sometimes (older) member just give a short comment, because they don't need the reputation. $\endgroup$
    – halirutan
    Commented Nov 26, 2012 at 16:05
  • $\begingroup$ @WalkingRandomly I think this question is appropriate for users with lower reputation. If you are interested in some more advanced problems with RelaDigits look at this question : mathematica.stackexchange.com/questions/6323/… $\endgroup$
    – Artes
    Commented Nov 26, 2012 at 16:06
  • 1
    $\begingroup$ @WalkingRandomly Well, this is not pure altruism, I believe. I think most high-rep users would agree that we need as many skilled M users to quickly get the rep. and associated privileges, as possible, to help manage our fast-growing community. In some sense, our survival as a community (preserving its culture, purpose, ways of communications etc) crucially depends on this, in the long-term at least. $\endgroup$ Commented Nov 26, 2012 at 16:19

1 Answer 1


What you are looking for is the function RealDigits


It should give you the functionality you need.

  • 1
    $\begingroup$ I edited you answer to make the inline-code into a code-block which is better readable. Furthermore, you don't need to give the full number IMO. A smaller one which fits on the line is sufficient to show the usage. $\endgroup$
    – halirutan
    Commented Nov 26, 2012 at 16:02
  • $\begingroup$ And btw, if you answered the question it kind of suggests, that you find the question OK. Therefore, upvote it. You should read the FAQ and maybe join the chat for smalltalk. And finally, welcome! Nice to have you here. $\endgroup$
    – halirutan
    Commented Nov 26, 2012 at 16:11
  • 3
    $\begingroup$ thanks for that, such gentle corrections are a nice way to learn how best to be a good SE citizen. $\endgroup$ Commented Nov 26, 2012 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.