Feb 28, 2005 #1 iffoiffy Programmer Joined Feb 24, 2005 Messages 67 Location CA Hi, I am using mysql tables in which I have a field float where the value is 34.00 and other is 34.90 in php when I echo the variables get printed like 34 and 34.90 How can i print 34.00 I been looking for a function that do it for me.. Thanks
Hi, I am using mysql tables in which I have a field float where the value is 34.00 and other is 34.90 in php when I echo the variables get printed like 34 and 34.90 How can i print 34.00 I been looking for a function that do it for me.. Thanks
Feb 28, 2005 #2 Meekos Technical User Joined Feb 6, 2004 Messages 39 Location US number_format($variable, 2); Upvote 0 Downvote
Feb 28, 2005 Thread starter #3 iffoiffy Programmer Joined Feb 24, 2005 Messages 67 Location CA thanks a lot Upvote 0 Downvote