Thread
:
php - why does this happen?
View Single Post
07-11-2003, 11:13 AM
Brujah
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
it doesn't keep the format, you can use sprintf to do it.. instead of print.
$saving = sprintf( "%01.2f", $rrp - $price );
http://www.php.net/sprintf
__________________
Free Premium Domain Lists and Tools at
Clickmojo.com
For Sale:
Obscenity.com
Brujah
View Public Profile
Visit Brujah's homepage!
Find More Posts by Brujah