Re: [PHP] float precision format not being kept

2003-08-22 Thread John W. Holmes
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, b

[PHP] float precision format not being kept

2003-08-22 Thread Rob Yelvington
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 li