Skip to content

5.0: Emulate % with native math.mod()#1370

Merged
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
YoRyan:5.0-modulo
Nov 28, 2022
Merged

5.0: Emulate % with native math.mod()#1370
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
YoRyan:5.0-modulo

Conversation

@YoRyan
Copy link
Contributor

@YoRyan YoRyan commented Nov 25, 2022

It's come to my attention that this is a much better way of doing modulo.

Depends on TypeScriptToLua/lua-types#78.

If you're wondering why the universal addition is there, our code still requires all targets to build the Modulo50 feature, so I've inserted a non-functional dummy.

@Perryvw Perryvw merged commit 74a404a into TypeScriptToLua:master Nov 28, 2022
@YoRyan YoRyan deleted the 5.0-modulo branch November 30, 2022 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants