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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -