You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python mod function is different from Rust. For example, in Python, -3 % 12 gives the result 9. This is because Python mod really is mod. Rust would return -3.
Maybe the answer is not use % in Rust, but instead some function that we write. (There are proposals to add a function that does this to Rust.)
The text was updated successfully, but these errors were encountered:
The Python mod function is different from Rust. For example, in Python, -3 % 12 gives the result 9. This is because Python mod really is mod. Rust would return -3.
Maybe the answer is not use % in Rust, but instead some function that we write. (There are proposals to add a function that does this to Rust.)
The text was updated successfully, but these errors were encountered: