[Libreoffice-bugs] [Bug 141201] Basic: MOD result is different for values passed as literals vs. using variables
https://bugs.documentfoundation.org/show_bug.cgi?id=141201 Andreas Heinisch changed: What|Removed |Added Assignee|libreoffice-b...@lists.free |andreas.heini...@yahoo.de |desktop.org | Status|NEW |ASSIGNED -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 141201] Basic: MOD result is different for values passed as literals vs. using variables
https://bugs.documentfoundation.org/show_bug.cgi?id=141201 Rafael Lima changed: What|Removed |Added Keywords||needsDevEval CC||rafael.palma.l...@gmail.com -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 141201] Basic: MOD result is different for values passed as literals vs. using variables
https://bugs.documentfoundation.org/show_bug.cgi?id=141201 Rafael Lima changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Rafael Lima --- I can confirm this in LO 7.1.2.2. Here's a simple example of how this bug may affect results: Sub ExampleMod Dim a As Double, b as Double a = 16.4 b = 5.9 Print a Mod b 'Prints 4 Print 16.4 Mod 5.9 'Prints 1 End Sub The first Print statement returns the correct value (consistent with MS VBA's result). In the second Print statement it seems that LO Basic only considers the integer part of the operands. So 16.4 turns into 16 and 5.9 turns into 5, then 16 MOD 5 returns 1. I am changing this to NEW. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 141201] Basic: MOD result is different for values passed as literals vs. using variables
https://bugs.documentfoundation.org/show_bug.cgi?id=141201 --- Comment #1 from Mike Kaganski --- > > DIM n > > 3 MOD n Oh, of course I missed a line: > DIM n > n = 1.5 > 3 MOD n It's easier to see the rounding/truncation using '5 MOD 2.5'. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs