BigInt Bug or just me?

Jordi Sayol g.sayol at yahoo.es
Sat Apr 21 07:30:34 PDT 2012


Al 21/04/12 16:07, En/na Tyro[17] ha escrit:
> Why does the following implementation of the binomial coefficient yield two different answers?
> 

Only happens when compiling to 32-bit.

32-bit:
(40  20) = 137846528820
(40  20) = 68923264410

64-bit:
(40  20) = 137846528820
(40  20) = 137846528820

-- 
Jordi Sayol


More information about the Digitalmars-d-learn mailing list