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

$\endgroup$
3
  • 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, 2016 at 15:03
  • $\begingroup$ Jason B, It still seems to be a bug. $\endgroup$
    – DavidC
    Jan 18, 2016 at 17:33
  • 1
    $\begingroup$ Edit -> Preferences -> Appearance -> Numbers -> Formatting -> "Numbers of digits displayed in output" $\endgroup$
    – Coolwater
    Feb 19, 2016 at 19:33

1 Answer 1

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.