Euler problems 14, 135, 174

bearophile bearophileHUGS at lycos.com
Sat Apr 10 04:14:39 PDT 2010


Don:
> But anyway --- use doubles instead of ints, and turn all the floating 
> point exceptions on. Will be much faster (on 32-bit compilers), and 
> overflow errors get caught as soon as they occur.

I have tried to use doubles as you say or to use BitInt, but in both cases I have so far failed in producing working programs...

Regarding BigInt, once they are more complete and refined, they can become a built in of the language (they can be called "bint" for example). Multi-precision ints are useful, and this can improve their literals, their implicit conversions, etc.

Bye,
bearophile



More information about the Digitalmars-d mailing list