J
Jay
Hello, I am sure this has a quick and easy solution but I can't find
it.
I need to store 19 '9's in an integer which means i need an unsigned 64
bit
integer.
in Visual Studio the code would be:
__int64 test = 9999999999999999999;
I am using g++ version 3.3.5(suse 9.3) and have tried both:
unsigned long long test = 999999999999999999;
and:
uint64_t test = 9999999999999999999;
both have this compile error using the command "g++ test.cpp"
test.cpp:5: error: integer constant is too large for "long" type
Am I forgeting to include something or not passing an option to g++, or
is
there another way to do 64 bit integer storage?
Thank you for your help
it.
I need to store 19 '9's in an integer which means i need an unsigned 64
bit
integer.
in Visual Studio the code would be:
__int64 test = 9999999999999999999;
I am using g++ version 3.3.5(suse 9.3) and have tried both:
unsigned long long test = 999999999999999999;
and:
uint64_t test = 9999999999999999999;
both have this compile error using the command "g++ test.cpp"
test.cpp:5: error: integer constant is too large for "long" type
Am I forgeting to include something or not passing an option to g++, or
is
there another way to do 64 bit integer storage?
Thank you for your help