Re: More math fun

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

 



On Tue, 2008-08-12 at 15:18 -0500, Jay Blanchard wrote:
> abs($balanceTest) = 15.22
> abs($oldLineArray[16]) = 15.22
> 
> $diff = abs($balanceTest) - abs($oldLineArray[16]);
> echo abs($diff) . "\n";
> 
> 1.7763568394E-15
> 
> WTF? This should be a big fat 0

Please provide the list with the following output:

<?php

var_dump( $balanceTest );
var_dump( $oldLineArray[16] );

?>

Methinks you have different data types.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
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