John McC (9/20/2016)
The Conditional rounding is not giving the desired results, based on the statementpeople need to round only if it would round down.
That would imply an OriginalValue greater than or equal to the ConditionalRound. The positive values are correct however the negative values, when rounded, round up.
-2.340 < -2.000
-2.890 = -2.890
-2.250 < -2.000
-2.500 = -2.500
-2.200 < -2.000
For the result to round down, -2.890 should be -3.000 and -2.500 should be -3.000
I'm sorry, I got carried away because the original problem was meant only for positive numbers and the solution is meant to round only if it would round towards zero. This is meant to be an example, I'm not even sure what's the real use for this, but it was asked in the forums.
Thank you for pointing this out.