0
$\begingroup$

This question already has an answer here:

Is this a bug?

ToExpression["3231.432"]

3231.43

I would have expected the following:

3231.432

I am using Mathematica 10.2.0

$\endgroup$

marked as duplicate by Yves Klett, Jason B., Kuba, m_goldberg, MarcoB Jan 18 '16 at 16:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ What do you see when you simply type 3231.43 and hit enter? It's just the number of displayed digits, the 2 is still there. $\endgroup$ – Jason B. Jan 18 '16 at 15:03
  • $\begingroup$ Jason B, It still seems to be a bug. $\endgroup$ – DavidC Jan 18 '16 at 17:33
  • 1
    $\begingroup$ Edit -> Preferences -> Appearance -> Numbers -> Formatting -> "Numbers of digits displayed in output" $\endgroup$ – Coolwater Feb 19 '16 at 19:33
4
$\begingroup$

I think this is only a display issue:

If you set

x=3231.432

you also get

3231.42

as a return. However, if you evaluate, say,

x-3000

the missing digit (2) will appear again. I guess Mathematica only displays five significant figures (per default). Hope this helps.

$\endgroup$

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