C++ int beyond 2,147,483,647?

Started by
10 comments, last by yckx 12 years, 7 months ago
You can also used unsigned long long if you need double the space. I think that trick let me do a project euler exercise without having to use the bigint library.
Advertisement

You can also used unsigned long long if you need double the space. I think that trick let me do a project euler exercise without having to use the bigint library.

It's not really double the space; rather, the range starts at 0 instead of being centered on 0. But the size of the range remains unchanged.

This topic is closed to new replies.

Advertisement