luna-core 2.11.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
11
-- v2.11 CORPUS-II: math library.
-- NOTE: math.modf luna returns float where PUC returns integer;
-- excluded pending semantic alignment (v3.0 stretch).
print(math.floor(3.7))
print(math.floor(-3.2))
print(math.ceil(3.2))
print(math.ceil(-3.7))
print(math.fmod(10, 3))
print(math.exp(0))
print(string.format("%.6f", math.log(math.exp(2))))
print(string.format("%.6f", math.log(100, 10)))