Re: [PHP] Formatting/Financial

2001-02-01 Thread Josh G
number_format($number,2); Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "[ rswfire ]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thur

Re: [PHP] Formatting/Financial

2001-01-31 Thread Andrew Golovin
Hello, [! Thursday, February 01, 2001, 06:33:53, you wrote: r> Is there a simple way to format a variable into an appropriate financial r> string... r> I'd like all of the above to format as $XXX.XX try to use $value = 5.0; $sval = sprintf("$%003.2f",$value); $sval will contai