Feb 28, 2005 #1 iffoiffy Programmer Feb 24, 2005 67 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 Feb 6, 2004 39 US number_format($variable, 2); Upvote 0 Downvote