We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Rust, the % operator performs the remainder operation, not the modulo operation.
The result of the following operation results in the value 30 when compiled using mrustc, however the expected output should be -30.
pub fn main() { println!("{}", -30_i8 % -55_i8) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In Rust, the % operator performs the remainder operation, not the modulo operation.
The result of the following operation results in the value 30 when compiled using mrustc, however the expected output should be -30.
The text was updated successfully, but these errors were encountered: