[mysql] float are not accurate? +REP
#1

my friend told me that I should use Floatstr instead of floats over mysql because it's not accurate or something like that, any explainations?
Reply
#2

Yes, rounding errors can occur due to the way floating point numbers are stored but they are accurate enough for their purposes. For example 3.1 might be stored as 3.09999 but no-one's going to notice that a position is off by 1/100,000th of a meter.

https://www.youtube.com/watch?v=PZRI1IfStY0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)