Jump to content

select and max difference


asmith

Recommended Posts

hey guys

 

i have a table , which has only 2 rows.  a number column which is a float.

 

both rows "number" column record is  0.1 .

 

when i run this line in phpmyadmin :

select number from table

 

i get the 2 entries which is 0.1  .

 

but when i run this line :

select max(number) from table

 

i get 0.10000000149012 

 

any idea why ?  and how can i fix it ?

 

thanks a bunch

Link to comment
https://forums.phpfreaks.com/topic/94499-select-and-max-difference/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.