Numbers above 1.8e+308

Ever since I released my game Streamer Life, I’ve had some people complain that they had so many followers and viewers that the NumberValue turns to inf.

After some digging on the internet, I suppose the max limit is 1.8e+308. I understand I can change how fast the player gets the followers, but before that, I’d like to see if it’s possible to make the limit higher. I don’t really care about the accuracy, I just need the numbers to go big. Is this possible, or should I reduce the follower gain speed? THANKS!!

1 Like

If you’re really going that high, I think you need to do some balance changes to your game.

I’ve done some digging around and found this:

where hexadecimal numbers are printed out as their value instead of ‘inf’. This seems to be a bug though, so don’t rely on this behaviour.

Edit: apparently not a bug, as stated by a Roblox staff member. Still a hack though and I’m not even sure if the value printed is the actual value.


might wanna change something lol

you can also take a look at this:

2 Likes

I would recommend you to look at this post: InfiniteMath | Go above 10^308/1e+308! - Community Resources - Developer Forum | Roblox

2 Likes

If accuracy isn’t an issue why not just change the units and adjust the rate?
For example, 1_000_000 with a gain of 1_000 can be changed to 1M with a gain of 0.001M

Roblox uses double-precision floating-point (float64) numbers. It’s used mainly in typical games because of its performance. Other types of precision exist, but they are generally used for large projects (that require excessively immense calculations in a short time).

These numbers lose their precision after 2^53, and the maximum value can be approximately 2^1024 (10^308 or in programming terms 1.8e+308)

There are some modules that don’t require double-precision numbers, and that have their own numbers These modules use the string datatype as they could perform operations without the actual number datatype. As for the performance, if you perform operations with massive numbers, and do hyperoperations (such as a[5]b, a[6]b), it takes a really long time. A regular CPU could do native operations in just milliseconds, but the other way it could take so much time.

It’s your decision whether you would use strings or other hacky methods

I suppose you could create a custom leaderboard, for its values to be stored inside a StringValue, but you would have to set up the math operations for the leaderboard yourself, since if you literally added them up then it would turn to infinite.