• Evan Shaw's avatar
    big: Improvements to Rat.SetString · 2e00bf98
    Evan Shaw authored
    * Allow an exponent part. This is necessary for exp/eval.
    * Fix a bug for input that had no numbers after the decimal.
    * In Int.SetString, allow a leading + sign.
    * In Int.SetString, error if the input is "-" with no number.
    * In nat.scan, normalize the resulting nat.
    
    R=gri
    CC=golang-dev
    https://golang.org/cl/1733045
    2e00bf98
int.go 14.1 KB