I’m trying to use long for 12 digit number but it’s saying “integer constant is too large for “long” type”, and I tried it with C++ and Processing (similar to Java). What’s happening and what should I use for it?
I’m trying to use long for 12 digit number but it’s saying integer constant
Share
I don’t know in C++, but in C, there is a header file called
<stdint.h>that will portably have the integer types with the number of bits you desire.and their unsigned counterpart (uint8_t and etc).
Update: the header is called
<cstdint>in C++