github.com/hirochachacha/plua@v0.0.0-20170217012138-c82f520cc725/stdlib/math/testdata/log.lua (about) 1 l = math.log(10) 2 assert(2.3 <= l and l <= 2.31) 3 4 assert(math.log(4, 2) == 2) 5 assert(math.log(4, 2) == 2) 6 assert(math.log(10, 10) == 1) 7 assert(math.log(12, 12) == 1)