Skip to content

Modulus returns negative numbers #448

@hoisie

Description

@hoisie
What steps will reproduce the problem?
1. In go, -16 % 7 returns -2. 

What is the expected output? What do you see instead?
Most other places (python, ruby, the google search box) returns 5

What is your $GOOS?  $GOARCH?
linux/amd64

Which revision are you using?  (hg identify)
cd893740a338+ tip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions