Problematic function is convertDenominator which doesn't work as expected with negative numbers. case 1: input = -1.009 output = -1.01 desired output = -1 case 2: input = 1.009 output = desired output = 1 RoundFloor doesn't work as in LibreOffice.
Which standard says LibreOffice is correct? Mathematically, rounding to floor always means rounding _down_, in other words, the result is not greater than the input.
(In reply to Christoph Feck from comment #1) > Which standard says LibreOffice is correct? Mathematically, rounding to > floor always means rounding _down_, in other words, the result is not > greater than the input. You're right. LO is not standard.