How to make 0.100000000000001 caused by rounding effects become 0.1 again?
When doing “correct mathematics” floating point effects cause a number 0.1
to become 0.100000000000001
.
So I want to do some “rounding”, but I’m unsure how to do it:
When doing “correct mathematics” floating point effects cause a number 0.1
to become 0.100000000000001
.
So I want to do some “rounding”, but I’m unsure how to do it: