PHP Math Precision

moganaeme

New Member
\[code\]$a = '35';$b = '-34.99';echo ($a + $b);\[/code\]Results in 0.009999999999998What is up with that? I wondered why my program kept reporting odd results.Why doesn't PHP return the expected 0.01?
 
Back
Top