-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Milestone
Description
What version of Go are you using (go version)?
go version go1.7rc3 linux/amd64
What operating system and processor architecture are you using (go env)?
amd64
What did you do?
I tried computing inverse modulo of a negative number using this snippet:
package main
import (
"fmt"
"math/big"
)
func main() {
res := big.NewInt(0).ModInverse(big.NewInt(-10), big.NewInt(13)).Int64()
fmt.Println(res)
}
What did you expect to see?
9
What did you see instead?
0