luna-core 2.13.0

Pure-Rust Lua runtime (interpreter only, zero third-party dependencies). The JIT-equipped variant lives in the `luna-jit` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
-- v2.13 CORPUS-IV: math.fmod sign follows DIVIDEND (C fmod);
-- % sign follows divisor — contrast both.
print(math.fmod(7, 3), 7 % 3)
print(math.fmod(-7, 3), -7 % 3)
print(math.fmod(7, -3), 7 % -3)
print(math.fmod(-7, -3), -7 % -3)
print(math.fmod(5.5, 2), 5.5 % 2)
print(math.type(math.fmod(7, 3)), math.type(math.fmod(7.0, 3)))
print((pcall(math.fmod, 1, 0)))
print(math.fmod(1.0, 0.0) ~= math.fmod(1.0, 0.0))