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 ));
My savings account
My retirement account
Winning the lottery
A Post-scarcity economy
Retirement?! You'll have to pull the keyboard from my cold, dead hands
I'm independently wealthy
Results (129 votes),