0
$\begingroup$

Is this a bug?

ToExpression["3231.432"]

3231.43

I would have expected the following:

3231.432

I am using Mathematica 10.2.0

| improve this question | | | | |
$\endgroup$
  • 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.

| improve this answer | | | | |
$\endgroup$

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