Shadowing Posted August 2, 2012 Share Posted August 2, 2012 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 More sharing options...
Christian F. Posted August 2, 2012 Share Posted August 2, 2012 I'm afraid you were mistaken then, because it's #num digits,#precision. So if you by using 6,3 you're stating that you want 6 digits in total, where 3 of them are used for the decimal values. What you wanted is 9,3. Link to comment https://forums.phpfreaks.com/topic/266581-float/#findComment-1366218 Share on other sites More sharing options...
Shadowing Posted August 2, 2012 Author Share Posted August 2, 2012 lol ahh thanks alot Link to comment https://forums.phpfreaks.com/topic/266581-float/#findComment-1366219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.