I think you are looking for printf.  Check the manual. it won't hold it, but
you can make it PRINT it. (Which, I'm asumming, is what you really want)

Cal
http://www.calevans.com

-----Original Message-----
From: JB [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 9:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Making PHP Hold the hundreth place, instead of dropping
the 0


Hey,

Simple question. Breifly rumaged through the PHP docs and couldn't find this
answer.

How do i force PHP to hold ending zero in a double?

Ie- if the price is 15.50, php will output it as 15.5 after it does the
math. how do i overcome this. thanks!

jason


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to