Commit Graph

18 Commits (2a1a475fa875fd0b91b558a3b6e37318995089d4)

Author SHA1 Message Date
Lars Mueller d94092ae9f Add math.rand(om|int) 2022-07-10 15:36:54 +02:00
Lars Mueller b52fee94af Add math.clamp 2022-05-10 19:44:27 +02:00
Lars Mueller eef3ea9c57 Localize setmetatable
(forgot to commit when implementing log)
2022-02-15 09:17:13 +01:00
Lars Mueller 479afb6c88 Add math.log(number, [base]) 2022-01-17 14:16:42 +01:00
Lars Mueller e33360ee49 Add math.log[base](number) 2022-01-17 11:58:16 +01:00
Lars Mueller 4402f2a054 Add math.onemod 2022-01-07 18:31:15 +01:00
Lars Mueller 83c5c87390 Add math.sign 2021-12-19 14:59:05 +01:00
Lars Mueller 27e91df7dd Add special value support to math.tostring 2021-08-16 20:07:23 +02:00
Lars Mueller 28eeb4ccf8 Improve performance 2021-08-08 23:29:43 +02:00
Lars Mueller 90c3b0ed90 Fix math.tostring 2021-08-08 22:37:47 +02:00
Lars Mueller 26de548e32 Add negative and positive nan constants to math 2021-07-18 15:11:11 +02:00
Lars Mueller 4175974def Redo environments 2021-06-17 19:45:08 +02:00
Lars Mueller 0315a77696 Localize globals per file for all modules 2021-06-11 20:47:29 +02:00
Lars Mueller 859d617138 Fix math.fround 2021-03-30 18:06:58 +02:00
Lars Mueller 7346d27e79 Add math.fround 2021-03-04 12:19:08 +01:00
Lars Mueller 44cca2569c Make modlib independent of Minetest 2021-03-04 12:18:26 +01:00
Lars Mueller 826c7b7aae Replace math.pow by ^ 2020-12-19 15:31:37 +01:00
Lars Mueller 90bb055c6f Rename modlib.number to modlib.math 2020-12-19 15:01:42 +01:00