Re: Fractions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

On Sunday 24 May 2009, Ron Piggott wrote:
> Is there a way to remove the trailing '0'?

$width = number_format($width,2);

> Also is there a way to have the original fraction display (1/4), as well
> as have provision for 1/8 and 3/8 and 1/2, etc. display?

On this one I suspect you'd have to write your own function, but maybe 
someone else knows better.

HTH

Mark

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux