V
V
VBKesha2020-06-08 18:31:06
Lua
VBKesha, 2020-06-08 18:31:06

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

2 answer(s)
S
Sergey Lerg, 2020-06-08
@Lerg

Native types can be used through ffi or a C library.

I
Ivan Shalganov, 2020-10-15
@Aco

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 question

Ask a Question

731 491 924 answers to any question