[PHP] Re: number format?

2005-05-10 Thread Jason Barnett
Dustin Wish wrote:
I have a number like -56.98
 
I need to convert it to -5698. I tried 

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


[PHP] Re: Number Format

2001-12-20 Thread Philip Hallstrom

Like the other guy said or take a look at the sprintf() function.

On Thu, 20 Dec 2001, phantom wrote:

> I would like to format numbers to be a fixed width.
>
> I want all numbers to be 2 characters in width to the left of the
> decimal point.
>
> 1 should be 01
> 2 should be 02
> 3 should be 03
>
> How can I do this?
>
>
> --
> 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]
>



-- 
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]