Ordered data store is not saving large numbers

when I try to save a large number in my ordered data store this error message appears:

but when i try to save a smaller number no error occurs

IIRC, the largest number you can store is in the quintillion range, and they must be integers.

If you need to store numbers larger than quintillion in the ordered datastore, you can try having a second ordered datastore, storing all values but divided by 1 quadrillion (or some other large value).

Then, Use the second datastore to get the top users, and use the initial one if the second datastore does not contain enough entries to fill the leaderboard. (Remember to multiply the values obtained from the second datastore by the same large value you divided the number by initially)

1 Like