RE: Math Weirdness

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

 



[snip]
What makes you think the problem is in this code? How about doing the
following right before the block of code you've provided so that we can
actually check the data with what you're using:

<?php

echo '$acct["BALANCE"]: '.$acct["BALANCE"]."\n";
echo '$adjBalance: '.$adjBalance."\n";
echo '$intlLDCharges: '.$intlLDCharges."\n";
echo '$longDistance: '.$longDistance."\n";
echo '$smsCharges: '.$smsCharges."\n";
echo '$roaming: '.$roaming."\n";
echo '$daCharges: '.$daCharges."\n";
echo '$totalData: '.$totalData."\n";
echo '$endingBal: '.$endingBal."\n";

?>
[/snip]

$adjBalance: 0
$intlLDCharges: 0.2
$longDistance: 0
$smsCharges: 0
$roaming: 0
$daCharges: 0
$totalData: 0
$endingBal: 0.1

I had done this looking for special characters or negative signs.

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