Hello Brian,

Thursday, December 23, 2004, 12:25:23 PM, you wrote:

BAA> Anybody know the easiest way to convert a number like 2.1 to $2.10 or 2 to
BAA> $2.00?

Use the money_format() function.

(Yes, PHP really does have a solution for nearly everything!)

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to