RosettaCode factorial needs to use longs
bearophile
bearophileHUGS at lycos.com
Sat Mar 8 13:20:27 PST 2014
Jay Norwood:
> http://rosettacode.org/wiki/Factorial#D
>
> to whomever is maintaining these:
> Need to change all ints to longs in this example to get the
> displayed results since the 15! result requires more than 32
> bits.
I am maintaining the D entries, I have fixed that factorial code,
thank you. I don't know why the shown output was for 64 bit
numbers.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list