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
Error with the modulo operator #51
Comments
Thank you so much for findings these bugs ! :D I'll take a look at this right now ! |
I'm trying to test the speed of the compiler against Cython by comparing their speed for finding prime numbers (that's how I ran into those bugs :D) |
Love that =) ! <3 |
If you're doing benchmark I just want to note that the for each loop with integers optimization is not in yet. You're going to see a HUGE difference when it will be. |
Perfect! I'll keep that in mind! |
Done in 4e83c84: |
Should be good. Because of wrong ID it was actually calling the divmod binary func instead of the remainder one. Thank you again ! :D |
If you take the modulo of a variable while in a for loop (the variable must be the one used by the for loop (i in the example)), it yields a tuple where the first element is the floor division and the second element is the actual modulo
Ex:
The text was updated successfully, but these errors were encountered: