disable f-e on high numbers

Recommended Posts

when i do outputChatBox(50000000000000000000000) its print 5e+22 instend of 50000000000000000000000. how to fix that?

I've tried tostring() and tonumber() but its not working..

Share this post

Link to post
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

Share this post

Link to post

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.