Merlin wrote:
Hi there,

I am searching for a command on how to format 0.5 to 0.50

thanx for any help,

merlin
sprintf("%.02f",$string);
Or number_format()

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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

Reply via email to