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
What steps will reproduce the problem?
1. Run
package main
import (
"fmt"
"math/big"
)
func main() {
var z big.Int
z.Exp(big.NewInt(-2), big.NewInt(0), nil)
fmt.Println(&z)
}
What is the expected output? What do you see instead?
Expected: 1
Got: -1
Please use labels and text to provide additional information.
The text was updated successfully, but these errors were encountered:
The documentation should explain what happens for "illegal" inputs and the result should
be 1 whenever the exponent is 0, regardless of the first operand.
The text was updated successfully, but these errors were encountered: