Answer the question
In order to leave comments, you need to log in
How is Lua with uint8/16/32 types only?
Looking for a scripting language for one project. Lua suits everyone, except that all numbers are doubles. And you will need to work with uint8/16/32 with their correct overflows. The question is whether there is some kind of Lua dialect with such a possibility, or is there a solution to this problem by another method?
Answer the question
In order to leave comments, you need to log in
If you have LuaJIT, then there is support for int64 and unit64 via cdata:
2LL - int64 number
2ULL - unsigned int64 number
Read more here
print(tostring(2222LL + 9999929292929922LL))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question