-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Description
by soniakeys:
Before filing a bug, please check whether it has been fixed since the latest release: run "hg pull -u" and retry what you did to reproduce the problem. Thanks. What steps will reproduce the problem? 1. package main import ("big"; "fmt") func main() { a, _ := new(big.Int).SetString("69720375229712477164533808935312303556800", 10) b, _ := new(big.Int).SetString("3099044504245996706400", 10) fmt.Println(b.Div(a, b)) } 2. 6g ; 6l ; 6.out What is the expected output? What do you see instead? Expected: 22497377864108980962 Instead: panic: div out of range What is your $GOOS? $GOARCH? linux, amd64 Which revision are you using? (hg identify) 10051a99cabd tip Please provide any additional information below. The example code works fine if changed to use variable a for the receiver.