Bug 8022 – BigInt division bug (2)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-05-03T01:20:00Z
Last change time
2012-07-03T04:49:22Z
Assigned to
nobody
Creator
yuri.musashi.miwa.tamura

Comments

Comment #0 by yuri.musashi.miwa.tamura — 2012-05-03T01:20:17Z
(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.
Comment #1 by github-bugzilla — 2012-07-01T19:49:40Z