Dear all, now I'm study mathematica, and face a problem like this:
I want to covert string "1107.302" to a double number and then do some calculation.
But the ToExpression function lost the number "02", then what can I do? Any suggestions?Code:a = "1107.302 "; Print[a]; >> Output is 1107.302 b=ToExpression[a]; Print[b]; >> Output is 1107.3 c = b * 2; .......
Thanks in advance!
Thanks very much, CB!
I just new a noteBook and type the following codes:
Then I want to export the b's value to a temp file, I hope the value should be 1107.302, but actually, it's 1107.3.Code:a = "1107.302 "; b = ToExpression[a]; Print[b - 1107]; >> Out put: 0.302 , this is correct Print[b]; >> Out put: 1107.3
What can I do then?