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
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
> -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
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
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.0. This was also confirmed by a user in #php. Anyone have
any ide
5 matches
Mail list logo