Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Biggest integer in Gideros 2015.12 Lua 5.1 — Gideros Forum

Biggest integer in Gideros 2015.12 Lua 5.1

totebototebo Member
edited February 2016 in General questions
I am looking to use the largest number available in Lua. I assumed this number would be 2,147,483,647 (signed 32 bit Int) or 4,294,967,295 (unsigned 32 bit Int). After a little testing it appears to be 99,999,999,999,999. It's a lot better of course, but can someone explain why this is the biggest number?

This is how I tested:
print(99999999999999)   -- 99999999999999
print(99999999999999.1) -- 99999999999999
print(9999999999999.9)  -- 9999999999999.9
print(100000000000000)  -- 1e+14
My Gideros games: www.totebo.com

Comments

Sign In or Register to comment.