The conclusion was that we can use the Decimal type to hold integer values with up to nearly 128 bits. That’s an impressively large number.
It’s hard to imagine a case where you would require both a larger number and precision at the least significant figures. However, it does make an interesting exercise so let’s give it a shot.
Beyond 128-bit integers
December 24, 2017
General Coding, Reference
Comments Off on Beyond 128-bit integers
Ken Boreham
I just finished a post related to the top range of integer values that are supported by Swift.
https://kenb.us/big-integers
The conclusion was that we can use the Decimal type to hold integer values with up to nearly 128 bits. That’s an impressively large number.
It’s hard to imagine a case where you would require both a larger number and precision at the least significant figures. However, it does make an interesting exercise so let’s give it a shot.
Read More »
Share this:
ArrayIntIntegerLarge valueString