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

RE: [PHP] float precision

2003-01-09 Thread Ford, Mike [LSS]
> -Original Message- > From: Kevin Avila [mailto:[EMAIL PROTECTED]] > Sent: 09 January 2003 04:33 > > I'm having a weird issue with float precision. I am > decrementing the > value of a float by 0.1. The problem is when the float I am working > with reaches 0.1 and I decrement it

Re: [PHP] float precision

2003-01-08 Thread Jason Wong
On Thursday 09 January 2003 12:33, Kevin Avila wrote: > Greetings, > > I'm having a weird issue with float precision. I am decrementing the > value of a float by 0.1. The problem is when the float I am working > with reaches 0.1 and I decrement it again I get 1.e09 instead of the > expected 0