note 1508 deleted from Floating point numbers by jeroen
| From: | jeroen@php.net | Date: | Wed, 23 May 2001 23:13:52 +0000 |
| Subject: | note 1508 deleted from Floating point numbers by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14209@lists.php.net to get a copy of this message | ||
Hi, What I want but could not get is:
Getting the integer part of a double which is nearest products of another number, say 100, which is
less then orjinal number. e.g:
72289.43 => new number should be 72200(for x100), 72000(for x1000).
72.1 => new number should be 70 (for x10, for x100, ...).
I could not find any idea how can I do with PHP. Of course in double, integer, real types... Not as
STRING!. I can do it as string of course...
In pascal or C,C++, there is