float precision format not being kept
| From: | Rob Yelvington | Date: | Fri, 22 Aug 2003 21:52:31 +0000 |
| Subject: | float precision format not being kept | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-160456@lists.php.net to get a copy of this message | ||
I have a list of floats that I need to put into an array, when I put them into an array manually the floats lose their format, for example:
$a = array(1=>3.50807443617658E-4);
print $a[1] returns: 0.00035080744361766
I'm familiar with round() and all the math functions, but I'm stumped.
Any light anyone can shed on this would be appreciated. ;)
Thanks,
~Rob Yelvington