in reply to
Re: Results depending on evaluation order
in thread Results depending on evaluation order
Interesting. Thanks Rolf!
What about eval? Why it got right evaluated?
eval expects a string, so the number is converted to a string, and the stringification rounds a tiny bit, so it accidentally produces the right result.
$premium = eval q($number * ( 1 + 10/100 ));
Other opinion (please explain)
Results (160 votes),