[Issue 8022] New: BigInt division bug (2)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 3 01:19:03 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8022
Summary: BigInt division bug (2)
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: yuri.musashi.miwa.tamura at gmail.com
--- Comment #0 from Musashi Tamura <yuri.musashi.miwa.tamura at gmail.com> 2012-05-03 01:20:17 PDT ---
(in dmd 2.059)
import std.stdio, std.bigint;
void main() {
BigInt n = BigInt(2) / BigInt(-3);
writeln(n);
writeln(n == 0);
}
output:
-0
false
I think correct output is 0 and true.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list