Skip to content
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

Round values in timer target speed check #12

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

christoph-heinrich
Copy link

math.floor() can result in one value being off by 1 because one was just barely below the whole integer while the other one was not. (floating point numbers \o/)
Adding 0.5 for actual rounding avoids that problem.

Closes #9

math.floor() can result in one value being off by 1 because one
was just barely below the whole integer while the other one was not.
(floating point numbers \o/)
Adding 0.5 for actual rounding avoids that problem.

Closes po5#9
@po5
Copy link
Owner

po5 commented Jul 26, 2023

No way you found a fix!!! Thanks.

@po5 po5 merged commit 4bd9993 into po5:rewrite Jul 26, 2023
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