Created
September 30, 2023 04:05
-
-
Save brecert/5f2c2facd018befe621268813896afdd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float round(float n) { | |
return floor(n) + step(-0.5, n - ceil(n)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment