Commit 6966e07a authored by Robert Griesemer's avatar Robert Griesemer

math/big: fix typos

Change-Id: Icb1490f97584d61823339ae809b88d423b185e64
Reviewed-on: https://go-review.googlesource.com/3751Reviewed-by: default avatarAlan Donovan <adonovan@google.com>
parent 4c91c0d0
...@@ -58,7 +58,7 @@ const debugFloat = true // enable for debugging ...@@ -58,7 +58,7 @@ const debugFloat = true // enable for debugging
// rounding, Float arithmetic operations emulate the corresponding float32 // rounding, Float arithmetic operations emulate the corresponding float32
// or float64 IEEE-754 operations (except for denormalized numbers and NaNs). // or float64 IEEE-754 operations (except for denormalized numbers and NaNs).
// //
// CAUTION: THIS IS WORK IN PROGRESS - DO NOT USE YET. // CAUTION: THIS IS WORK IN PROGRESS - USE AT YOUR OWN RISK.
// //
type Float struct { type Float struct {
mode RoundingMode mode RoundingMode
......
...@@ -184,7 +184,7 @@ func ParseFloat(s string, base int, prec uint, mode RoundingMode) (f *Float, b i ...@@ -184,7 +184,7 @@ func ParseFloat(s string, base int, prec uint, mode RoundingMode) (f *Float, b i
// //
// BUG(gri) Currently, Format only accepts the 'b' and 'p' format. // BUG(gri) Currently, Format only accepts the 'b' and 'p' format.
func (x *Float) Format(format byte, prec int) string { func (x *Float) Format(format byte, prec int) string {
const extra = 10 // TODO(gri) determine a good/better vaue here const extra = 10 // TODO(gri) determine a good/better value here
return string(x.Append(make([]byte, 0, prec+extra), format, prec)) return string(x.Append(make([]byte, 0, prec+extra), format, prec))
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment