February 26, 2011 [Issue 5654] New: BigInt returns ZERO with strings of single digit number with leading zeros | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5654 Summary: BigInt returns ZERO with strings of single digit number with leading zeros Product: D Version: D2 Platform: x86_64 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: yangbak@gmail.com --- Comment #0 from Yang <yangbak@gmail.com> 2011-02-25 21:47:20 PST --- import std.stdio; import std.bigint; void main() { BigInt a = "01"; writeln(a); BigInt b = "007"; writeln(b); BigInt c = "+0009"; writeln(c); BigInt d = "1"; writeln(d); BigInt e = 001; writeln(e); } Output 0 0 0 1 -> Ok 1 -> Ok // Is this related to the function fromDecimalString() from biguintcore.d?? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 28, 2011 [Issue 5654] BigInt returns ZERO with strings of single digit number with leading zeros | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yang | http://d.puremagic.com/issues/show_bug.cgi?id=5654 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |FIXED --- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-03-28 06:38:09 PDT --- Fixed: https://github.com/D-Programming-Language/phobos/commit/ab1b7d621a0a28ed156b5a0f2b2af563145e03c9 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation