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

Use mathematical modulo implementation for calculations #616

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Jul 26, 2023

See documentation (%/rem, mod) for differences.

Example for "issue" that occurred:
mathematical: -4 % 6 = 2 (expected)
kotlin: -4 % 6 = -4 (unexpected)

See documentation (%/rem, mod) for differences.

Example for "issue" that occurred:
mathematical: -4 % 6 = 2 (expected)
kotlin: -4 % 6 = -4 (unexpected)
@Syer10 Syer10 merged commit 6ac8f4c into Suwayomi:master Jul 26, 2023
2 checks passed
@schroda schroda deleted the fix/unexpected_result_of_modulo_due_to_kotlin_implementation_of_rem branch July 27, 2023 09:59
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