Re: Fractions
| From: | Jason Wong | Date: | Sun, 17 Nov 2002 06:20:42 +0000 |
| Subject: | Re: Fractions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124771@lists.php.net to get a copy of this message | ||
On Sunday 17 November 2002 03:09, Stephen wrote:
> 9/5 and 5/9 would be a repeating deicmal. I find fractions would be easier
> to multiply then a repeating deicmal.
But php doesn't care one bit (and neither should you) whether you use
echo ( (5/9) * (80-32) );
OR echo ( 0.55556 * (80-32) );
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
If the code and the comments disagree, then both are probably wrong.
-- Norm Schryer
*/