I am having some trouble with mathematica, i need to precise calculations and he is rounding my numbers and taking decimal cases from them and i wanted to know if there's a way i can tell him to stop or only do that for some specific lenght of numbers, for example if we have $0.0119935,0.0561,0,084942$ and add them up the result should be $0,1530355$ and mathematica gives me $0.153036$. Is there a way i can change this ? Thanks in advance.
Asked
Active
Viewed 56 times
0
1 Answers
2
I think you can solve this issue by using SetPrecision.
I hope that helps!
Henrik Schumacher
- 106,770
- 7
- 179
- 309
MathematicaUser
- 376
- 1
- 7
expr = 0.0119935 + 0.0561 + 0.084942displays as0.153036The output display (menu: Mathematica | Preferences | Displayed precision) is rounded to six (default) decimal places; however, the internal value is not rounded. To see the internal value look at the
FullForm:expr // FullFormdisplays as`0.1530355``
– Bob Hanlon Mar 17 '20 at 13:53