I was wondering: Why this game’s currency can go more than 1e308?
NumberValue only can represent up to 2^1024-1 which is almost equivalent to 1.79769*10³⁰⁸.
But, this game goes more than that. (Which I checked was a people having 1e500 eggs.)
So, I just want to use big numbers as this game has.
Do I have to represent a number as an exponential value? or do you have other ideas?
If you have any, please give me an opinion.
Thanks!
PS: And, I want to save. I want to save the value that is more than 10^308.
Use a BigNum library. There’s a bunch of them hanging around if you do a quick search. The first one that comes to my mind is RoStrap’s BigNum.
As far as saving goes, this BigNum library does support DataStore saving if you use the toString64 method. You can convert the number back later using fromString64 when getting data. When it comes to OrderedDataStores however, I don’t have an answer. Try searching the DevForum, it’s definitely been asked before.