Why doesn't Calc'S ROUND() use the mathematical/statistical correct rounding method that is also the default IEEE 754 standard for floating point numbers?
=ROUND(5/2) gives "3"
its should give "2" however, if it used the correct computer/statistics rounding, because on a plain ".5(0000...)" you have to round to the even number to avoid statistical errors.
More example: If you average over 1000 rounded positive half integers (-> the mean of 1000 random round(n/2) ) it will be simply wrong, because for all odd n you will round up, but it will never happen that you round down. Your mean will be to big.
That's why Calc should have a ROUND() that uses statistical/mathematical and standard correct rounding.
Because the standard 5/4 rounding is more useful for spreadsheets.
(In reply to comment #1)
> Because the standard 5/4 rounding is more useful for spreadsheets.
What's more "useful" is given by the use case. However, the word "useful" is not even correct here. In statistical problems, for which you can use LO Calc, the "always round up on .5" method is simply wrong, not just unuseful!
If you feel better, then take this as a simple feature request, not as a bug.
Or if you want to be more "bureaucratic": Currently LO Calc is not IEEE 754 conform (pretty bad for a computer program, IMHO), because it only has the three non-default methods of IEEE 754: round always down, round always up and round up on ".5"
But it is completly missing the IEEE 754 rounding of on .5 round to the even number (and this is even the default of IEEE 754).
Perhaps there could be an option to select IEEE-754 mode in spreadsheets?
Marking as enhancement
Status -> NEW
seems the enum value rtl_math_RoundingMode_HalfEven is used nowhere
Don't use default information. I am fetch many https://www.superiorpapers.com/programming.php files because these files are ever have something necessary and important for us which can be good whenever we use where it is good to handle this whole information.