D2 phobos BigInt bug
ZHOU Zhenyu
rinick at goozo.net
Thu Feb 5 18:08:08 PST 2009
BigInt b = "100000";
foreach( i; 1..20 ){
b*=10;
writeln(b*b);
}
system: Windows
CPU: Intel Core2 Duo T7250 2.00GHz
result:
1000000000000
100000000000000
10000000000000000
1000000000000000000
100000000000000000000
10000000000000000000000
999981553255926290448384
100000000000000000000000000
10000000000000000000000000000
1000000000000000000000000000000
100000000000000000000000000000000
10000000000000000000000000000000000
1000000000000000000000000000000000000
100000000000000000000000000000000000000
10000000000000000000000000000000000000000
999999999999999999999981553255926290448384
100000000000000000000000000000000000000000000
9999999999999999999999999981553255926290448384
1000000000000000000000000000000000000000000000000
More information about the Digitalmars-d-bugs
mailing list