We saved a value of 2.01 in a float column in MySQL.
Then, after we applied the avg function, it returned 2.009999990463257
Why is this happening?
Here is the query we are using:
SELECT avg(height)  FROM `students` where class='b1'
We saved a value of 2.01 in a float column in MySQL.
Then, after we applied the avg function, it returned 2.009999990463257
Why is this happening?
Here is the query we are using:
SELECT avg(height)  FROM `students` where class='b1'
