#How Idle Games Handle Huge Numbers?
1 messages · Page 1 of 1 (latest)
Yes they use libraries/types similar to BigInteger
Many use BreakInfinity
Which is a compromise
wow great! but, are they kinda slower? or they are still ok to use oftenly?
There is also the possibility to use exponent and removes non significative numbers.
You do not want to use floats number as those will be less precise the greater they are.
They're slower, but you don't have that many numbers
Thanks alot guys, really helped me. Just gained new insights 😃 👍
I'm guessing "offset and bucket" is basically what goes on in a big integer library
breaking a number into several pieces
They're slower than regular math sure but you've gotta do what you've gotta do.
is offset and bucket like treating a number as a*b+c (or a<<x|c)?
i see c# uses an uint array to store all the bits after the number is converted to binary(?)