Jump to content

Float


Shadowing

Recommended Posts

I thought i knew how using float on a column worked but something happend just now that shocked me.

 

i had my column set to 6,3

 

I thought that meant 6 digits to the left of the decimal and 3 to the right?

 

when inserting 1500 it showed up as 999.000

 

so i thought hmm well maybe it has to be 6,6 so I tried that and it inserted 1500 as .999999 or .999000 cant remember.

Link to comment
https://forums.phpfreaks.com/topic/266581-float/
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.