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
go version
$ go version go1.14.4 windows/amd64
Yes
go env
$ go env AMD64 Windows
fmt.Printf("x=%d", (115-303)%1626)
output: x=-188
https://play.golang.org/p/yYVbpJYbp-L
x=1438
x=-188
Reminder by module deviding cant be less zero !
The text was updated successfully, but these errors were encountered:
% is remainder not modulo. https://stackoverflow.com/questions/13683563/whats-the-difference-between-mod-and-remainder
%
Sorry, something went wrong.
This is as specified in the spec: https://golang.org/ref/spec#Arithmetic_operators
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
fmt.Printf("x=%d", (115-303)%1626)
output:
x=-188
https://play.golang.org/p/yYVbpJYbp-L
What did you expect to see?
x=1438
What did you see instead?
x=-188
Reminder by module deviding cant be less zero !
The text was updated successfully, but these errors were encountered: