note 1536 deleted from Floating point numbers by jeroen
| From: | jeroen@php.net | Date: | Wed, 23 May 2001 23:13:52 +0000 |
| Subject: | note 1536 deleted from Floating point numbers by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14210@lists.php.net to get a copy of this message | ||
re getting the integer portion, I'm new to php, more or less, but it seems a little like Perl.
In Perl, you could split the float on the ".", and use the lefthand portion. Since the
data type is context sensitive, the only thing you need to make sure of is that there aren't
any spaces in the variable (which there shouldn't be on a split).