Jump to content

disable f-e on high numbers


Recommended Posts

string.format("%.0f", 50000000000000000000000)

The max returned value is: 49999999999999995805696

 

Lua numbers have limited precision, but you are trying to store a number that exceeds what can be stored.

You'll need to use a different mechanism to store them and operate on these numbers.

Search in Google with this keywords: "bignum" and "arbitrary precision numbers"

Edited by Jayceon
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...