[Issue 19740] Incorrect result of BigInt * BigInt

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 15 12:59:30 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19740

--- Comment #3 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
Simpler numbers demonstrating the same issue:

a =
241127122100380210001001124020210001001100000200003101000062221012075223052000021042250111300200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
b =
70020000000050041832100040114001011000002200722143200000014102001132330110410406020210020045721000160014200000101224530010000111021520000000012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Gives this result:
20000000001000003004000000120212100201000101001104000000010101000110200200000011011012010000010401100130020000041001002003000201010011124100010007220001471870730867315477594439355311694480948106052082286667289293612000561058058780959087178453367701487987704395450321365382687298205069039303066149854725490780100394780481552981630341618301661667399665774466232711496902529170260586056260480285668935821902794996073140454770961377671072882308072028734904868893098854793460359961494977497968219623527972133861047574462464

As we can see, the result should end in a number of 0s, but most definitely
doesn't. There probably are even smaller numbers that exhibit the same issue.

--


More information about the Digitalmars-d-bugs mailing list