Why is floating point value saved incorrectly in MySQL? -


we saved value of 2.01 in float column in mysql.

then, after applied avg function, returned 2.009999990463257

why happening?

here query using:

select avg(height)  `students` class='b1' 


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -