github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/runtime/lua/const.lua (about) 1 d = string.dump(function() 2 print(2, 3.5, 99999999, "hello", false, nil) 3 end) 4 load(d)() 5 --> =2 3.5 99999999 hello false nil 6 7 print(load("x == y")) 8 --> ~nil\t.* 9 10 -- Hexadecimal literals are truncated 11 print(0x12345678900000000000000000000ff) 12 --> =255 13 14 -- Decimal integer literals that do not fit into an integer are turned to 15 -- floats (specified in Lua 5.4) 16 print(5000000000000000000000000000000000000) 17 --> =5e+36 18 19 print(1e999999, -1e9999, 1e-99999) 20 --> =+Inf -Inf 0 21 22 print("1e99999" + 0) 23 --> =+Inf 24 25 print("-2" + 0, "+2" + 0, "100000000000000000000" / "10000000000000000000") 26 --> =-2 2 10