Re: Fractions
| From: | Mark Kelly | Date: | Sun, 24 May 2009 23:52:33 +0000 |
| Subject: | Re: Fractions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293091@lists.php.net to get a copy of this message | ||
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