[PHP] Re: formating numbers to two decimal points - money - best ways

2001-09-01 Thread fx
if your datas are stored in a DB you should specify the precision of the float in the table : float(8,2) Anyone have functions for formatting numbers being multiplied by variables and whatnot to two decimal points - rounded up? As for displaying total cost, etc?

[PHP] Re: formating numbers to two decimal points - money - best ways

2001-07-31 Thread Richard Lynch
You mean like PHP's number_format function http://php.net/number_format :-) -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm