Re: Get rid of da Zero's
| From: | Christian Reiniger | Date: | Fri, 26 Jan 2001 12:24:21 +0000 |
| Subject: | Re: Get rid of da Zero's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36776@lists.php.net to get a copy of this message | ||
On Thursday 25 January 2001 23:27, Ethan Nelson wrote:
> It needs to quit shaving zero's when it hits the decimal point.
>
> 40.00 into 40
> 45.50 into 45.5
> 40.25 into 40.25
Hmm,
$ValWithoutZ = (double) $ValWithZ;
should work fine (i.e. interpreting the number as floating-point value
instead of as string)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"use the source, luke." (obi-wan gnuobi)