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'
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
Post a Comment