https://bugs.documentfoundation.org/show_bug.cgi?id=50299
--- Comment #32 from mahfiaz <[email protected]> --- I think this bug should be closed and reported again. It would make sense to always round numbers with MOD (lets not forget how fast modern CPUs actually are) and maybe add MODFAST function which could make available the behaviour we have now. So I propose MOD would have similar behaviour: A3 - dividend B3 - divisor C3 - precision =-CEILING(LOG(B3; 10)) + 10 D3 - =MOD(ROUND(A3; C3); ROUND(B3; C3)) I am no expert but similar behaviour could possibly be achieved with just bitmasking a few last bits off from the fraction part of the doublefloat if the fraction part is filled eg some of its upper bits (the rightmost ones) are nonzero. if (b00000000000000000000000000000111 & num) { num &= 11111111100011111111111111111111; } -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
