Last modified: 2013-09-08 22:57:04 UTC
I documented this in the [https://www.mediawiki.org/w/index.php?title=Help:Extension:ParserFunctions&oldid=778504 Parser Functions Help: Rounding] section. If you use the function '''round''', '''floor''', or '''ceil''' with a negative value that should correctly round to zero, you end up with a negative zero instead. While mathematically, zero and negative zero are identical, conceptually and possibly in comparison logic, they are not the same thing. Is (-0 == 0) true or false? It should evaluate as true, but it would be much better if the rounding resulted in an unambiguous "0", so that this question never needs to come up. [Note: This is my first bug report here, so if I am missing anything or did something wrong, please be gentle with me. :-) ]
https://www.mediawiki.org/w/index.php?title=User%3ATechnical_13%2FSandBox&diff=778511&oldid=708467 says this isn't an issue... (-0 == 0) as far as the parser is concerned.