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

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

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -