Re: [boost][int128] Formal Review Begins Today (July 22-July 31)

Nigel Stewart via Boost <[email protected]> Tue, 28 Jul 2026 22:11:10 +1000
Newsgroups gmane.comp.lib.boost.devel
Message-ID <CAOD5mAF-0sB4JfSMibo-_72Dyj8K94O8O6YQD5Z+cBdWO_=yEg@mail.gmail.com>
I tried a few things with boost::int128.
Including something (sort of) fun: 34 factorial.
I like this, pushing past the limits of uint64_t.
(Proper review to follow)

- Nigel

34! = *295232799039604140847618609643520000000*

std::cerr << "34! = " << fac<boost::int128::uint128_t>(34) << std::endl;

Python (for a second opinion):

>>> math.factorial(34)
*295232799039604140847618609643520000000*
_______________________________________________
Boost mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected]/message/V5LBJW6TDCWI753XNJF55SFEUCEZC33F/