As specified in documentation center the functions AccountingForm
, NumberForm
, etc. are useful only to display numbers in different notations: acts as a "wrapper", which affects printing, but not evaluation. But if I want to calculate with less digits how can I do?
For example:
n1 = 0.2345;
n2 = 1;
n2 - n1
0.7655
n11 = NumberForm[n1, 3];
n2 - n11
1-0.235.
EDIT:
Perhaps, sure, I explained not very well my problem. I want that only n1 has 3 decimal. If I use
NumberForm[{n1, n2 - n1}, 3]
first I consider all the number with all digits, and then I cut the decimals. I'm I wrong? I'm doing an analysis about how many digits I need in a calculation. All the other number must have 4 digits and only one three digits, so I want to force that number to have three digits
Round[number,0.001]
?? $\endgroup$