Cyril Chacko wrote:
Hi,
I have created a class and passing a float value to a method in it. I
have checked the the argument values in the method. The passed
argument has the proper value. However, on any arithmetic operation
the float as a whole is rounded off.
http://php.net/float
There is a
http://php.net/number_format
-Original Message-
From: Dale Hersh [mailto:[EMAIL PROTECTED]
Sent: Friday, 3 October 2003 10:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] FLOAT
Hi. I have a question regarding how to manipulate numbers in php. I am
currently storing some values as type float i
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
> -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
5 matches
Mail list logo