conquering complex code
December 23, 2017
General Coding, Reference
Comments Off on How to store large integer values without losing precision
Ken Boreham
I recently wanted to use some very large numbers in Swift and quickly came across some limitations.
Int
My first implementation started out naively with Int (Int64) type. This is, after all, the easiest way to use integers.
The limitations are also easy to understand. Read More »
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Email Address
Subscribe
How to store large integer values without losing precision
December 23, 2017
General Coding, Reference
Comments Off on How to store large integer values without losing precision
Ken Boreham
I recently wanted to use some very large numbers in Swift and quickly came across some limitations.
Int
My first implementation started out naively with Int (Int64) type. This is, after all, the easiest way to use integers.
The limitations are also easy to understand.
Read More »
Share this:
DecimalFloatFloat32Float64Float80floating pointIntInt64Integermantissasignificandulp