Re: More math fun

From: Date: Tue, 12 Aug 2008 20:25:14 +0000
Subject: Re: More math fun
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-277998@lists.php.net to get a copy of this message
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

« previous php.general (#277998) next »