D wrote:
> what is the range of the largest numeric data type available?
>
> If I do this (on xp32)
>
> __int64 g = 418235339844242000000;
>
> I get
>
> error C2177: constant too big
>
> Will compiling on xp64 solve this?
First of all the type is called int64_t, and you should not use __int64.
But why do you think the type is any different between xp 32bit and xp
64bit?
Yours problem is that the number needs more than 64 bit to store, you
you would need a 128 bit type. On some architectures (such as IA64), the
compiler may prodive such a type, called int128_t. But I don't think
AMD64 usually has it.
Note that you also have to postfix your constant with LL. Some compilers
do this for you, but that is not quite correct.
> Next, is stl available for 64 bit development? I use a map to store those
> large numbers.
Sure, STL is part of the standard for years now.
Thomas
|