RE: Unexpected values in an associative array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, July 31, 2007 11:06 am, Instruct ICC wrote:
> What is $value and what is this supposed to do:
>>							case	'integer':
>>									$value 		+= 0;
>>

This is a silly hack in place of:

$value = (int) $value;

break;
>>
>>							case	'float':
>>									$value 		+= 0.0;

$value = (float) $value;

Adding 0 won't hurt an int, but adding 0.0 can only increase the error
margin of float.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux