Last modified: 2010-03-18 11:35:58 UTC
Unexpected results : {{#ifexpr: -0 | yes | no }} → no {{#ifexpr: 1*0 | yes | no }} → no {{#ifexpr: -1*0 | yes | no }} → yes See http://www.mediawiki.org/w/index.php?title=Help:Extension:ParserFunctions&diff=310071&oldid=307495
Maybe related to bug 6356 and Bug 18233 ?
Unlikely. I don't understand the code well enough to see what's going wrong here, though. There should never be rounding errors when multiplying by 0, surely?
-0 is normalised to 0 but -1*0 is kept as -0, which trigger the yes
Where is this normalization done? Also, why is -0 a yes? (bool)(-0) in PHP is false.
Fixed in r63906.