[Bug 57888] New: Incorrect decimal fixed-point multiplication
https://bugs.winehq.org/show_bug.cgi?id=57888 Bug ID: 57888 Summary: Incorrect decimal fixed-point multiplication Product: Wine Version: 10.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: lxndrkrlv(a)gmail.com Distribution: --- Sample code in .NET 4.8 ----------------------------- decimal x1 = 100m / 3m; decimal x2 = 1.5m; Console.WriteLine($"{x1} * {x2} = {x1 * x2}"); Console.WriteLine($"{x2} * {x1} = {x2 * x1}"); ------------------------------ Output under Windows: 33,333333333333333333333333333 * 1,5 = 50,000000000000000000000000000 1,5 * 33,333333333333333333333333333 = 50,000000000000000000000000000 ------------------------------ Output under WINE 33.333333333333333333333333333 * 1.5 = 50.000000000000000000000000000 1.5 * 33.333333333333333333333333333 = 2.4631024914413974438736297979 ------------------------------ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57888 --- Comment #1 from Rafał Mużyło <galtgendo(a)o2.pl> --- Is the output from wine produced with wine-mono or manually installed .NET 4.8 ? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57888 Sergey Isakov <isakov-sl(a)bk.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |isakov-sl(a)bk.ru --- Comment #2 from Sergey Isakov <isakov-sl(a)bk.ru> --- Can you upload this sample.exe to test? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57888 --- Comment #3 from Alexander <lxndrkrlv(a)gmail.com> --- This is produced with manually installed .NET 4.8 (and other 4.x version) ? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57888 --- Comment #4 from Alexander <lxndrkrlv(a)gmail.com> --- Created attachment 78147 --> https://bugs.winehq.org/attachment.cgi?id=78147 Sample .exe to reproduce the bug -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57888 --- Comment #5 from Alexander <lxndrkrlv(a)gmail.com> --- This is produced with manually installed .NET 4.8 (and other 4.x version) To multiple decimals, .NET Framework calls platfirm-specific internal unmanaged function: [SecurityCritical] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void FCallMultiply(ref Decimal d1, ref Decimal d2); IMHO, this bug is a result of incorrect processing of overflowing the fractional part of the number with a fixed point after multiplication -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=57888 gazik(a)aret.cz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gazik(a)aret.cz --- Comment #6 from gazik(a)aret.cz --- I've encountered the same issue with a manually installed .NET 4.8 Are there any updates on this bug? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla