Round value ???
1 view (last 30 days)
More Answers (2)
Walter Roberson on 18 Oct 2011
That cannot be done exactly in binary floating point arithmetic. Just the same way that you cannot exactly represent 1/3 in a fixed number of decimal digits, 1/100 cannot be exactly represented in binary digits.
It is possible to display something with two decimal places, such as by using
but you cannot store 343.95 exactly in a floating point number: try
and notice that it is not exactly 343.95 that is stored.
If you do not mind that you can only numerically get a close approximation, then use: