home | list info | list archive | date index | thread index

Re: maximum integer value data type in C++11?

On Tue, 13 Aug 2019, masmullin [ at ] hush [ dot ] com wrote:

> http://www.cplusplus.com/reference/limits/numeric_limits/
> std::numeric_limits<unsigned long long int>::max()
>
> hitting gnome-calc, a 64bit integral should be able to hold 20! as
> 2^64 > 20!.  However, this gcc doc might help if my usage of math
> skills are lacking
>
> https://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html

  amusing followup ... i chatted with the guy yesterday afternoon who
was looking at the results of the online assessment and, toward the
end of the chat, i asked him what the solution was, since i simply had
no idea.

  he affirmed that my solution was perfectly correct up to the limit
that could be stored in a long long, but he also didn't know how the
program should have been coded to handle values above that.

  so, in the end, i still have no idea.

rday

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org