ninedoors Posted October 10, 2007 Share Posted October 10, 2007 I have a field in my database that is a winning percentage for each team in my league. This field is a float and I want the winning percentage to produce 3 decimal places. The problem I am having is that when I enter the value in the DB if the value is say, .650, itr only enters .65. I want it is this way for consistentcy when I print the data on my stats page. Is there any way to combat this? Nick Link to comment https://forums.phpfreaks.com/topic/72550-solved-holding-place-values-in-mysql/ Share on other sites More sharing options...
ninedoors Posted October 10, 2007 Author Share Posted October 10, 2007 Oh ya, in my script I am using number_format to get the right amount on decimals. Link to comment https://forums.phpfreaks.com/topic/72550-solved-holding-place-values-in-mysql/#findComment-365826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.