I'm trying to find a float using math round I found the following
0.5 --> 0
1.5 --> 2
2.5 --> 2
3.5 --> 4
etc. I believe this is due to a floating point error, but not quite sure how to do this. How can I get around this so that even the numbers are rounded correctly?
Kuzon source
share