-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Const eval for some math procs #1202
Conversation
Will try to actually make them const-evaluable. Will reopen then. |
Huh, locally tests were passing. Will check what's wrong tomorrow. Also I should remove the native proc implementations now. |
despite my doubts
The unit test uses approximate equality because of the fact that .NET's trigonometry functions can and do behave differently on different platforms. See the remark here. There is apparently a 1.1920929E-07 difference between Windows and Linux (or at least between my computer and the github actions server). Maybe at some point we will have to use something else than MathF and Math to avoid this issue. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Merge update
Co-authored-by: wixoa <[email protected]>
Added only those that BYOND considers const-evaluable (no
round
for example).