Re: float precision format not being kept

From: Date: Fri, 22 Aug 2003 23:59:56 +0000
Subject: Re: float precision format not being kept
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160469@lists.php.net to get a copy of this message
Rob Yelvington wrote:
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.
I don't know if any of these work or not, but it's about all I could find: http://www.faqchest.com/prgm/php-l/php-01/php-0108/php-010814/php01080315_24951.html http://www.visualbasicforum.com/t35177.html -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

« previous php.general (#160469) next »