Answered my own question... rounding using the "round" function to two
decimal places did the trick:
=
$contract_amount)\n\n";
if(($paid_to_date + $billable_this_month) >= $contract_amount) {
echo"true";
}
else {
echo"false";
}
?>
now outputs "true". :-)
--
--
I understand the issues about binary precision for floating point numbers on
standard base 2 systems but I'm unsure of the propper way to fix this
problem. Here is the base test case:
=
$contract_amount)\n\n";
if(($paid_to_date + $billable_this_month) >= $contract_amount) {
echo"t
2 matches
Mail list logo