Re: Understanding intval() and types conversion
| From: | Jason Barnett | Date: | Wed, 26 Jan 2005 00:16:40 +0000 |
| Subject: | Re: Understanding intval() and types conversion | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207327@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Bruce Douglas wrote:Calculus, or did I miss something here? In any case it was a cool link all the same and I enjoyed reading it. Float <-> int conversions have been a problem in every language that I've coded in. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://www.php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+pluginsso... you're saying that 7.99999 (repeating) is equal to 8.0.... i say prove it.. as i recall the numbers might be for all practical purposes the same, they are in fact vastly different... so, prove your assertion...he did. you have to consider the two the same, given that there is always a limit to the level of precision - the alternative would be to say no 2 numbers are ever equal and that make for boring mathematics. actually the underlying maths kinda makes my head spin :-)