diff options
Diffstat (limited to 'libgo/go/math/big/float.go')
-rw-r--r-- | libgo/go/math/big/float.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/math/big/float.go b/libgo/go/math/big/float.go index d7aa8953c43..b1c748c9a54 100644 --- a/libgo/go/math/big/float.go +++ b/libgo/go/math/big/float.go @@ -124,7 +124,7 @@ const ( // rounding error is described by the Float's Accuracy. type RoundingMode byte -// The following rounding modes are supported. +// These constants define supported rounding modes. const ( ToNearestEven RoundingMode = iota // == IEEE 754-2008 roundTiesToEven ToNearestAway // == IEEE 754-2008 roundTiesToAway @@ -298,7 +298,7 @@ func (z *Float) setExpAndRound(exp int64, sbit uint) { // not require 0.5 <= |mant| < 1.0. Specifically: // // mant := new(Float) -// new(Float).SetMantExp(mant, x.SetMantExp(mant)).Cmp(x).Eql() is true +// new(Float).SetMantExp(mant, x.MantExp(mant)).Cmp(x) == 0 // // Special cases are: // @@ -1123,7 +1123,7 @@ func (x *Float) Int(z *Int) (*Int, Accuracy) { // Rat returns the rational number corresponding to x; // or nil if x is an infinity. -// The result is Exact is x is not an Inf. +// The result is Exact if x is not an Inf. // If a non-nil *Rat argument z is provided, Rat stores // the result in z instead of allocating a new Rat. func (x *Float) Rat(z *Rat) (*Rat, Accuracy) { @@ -1272,7 +1272,7 @@ func (z *Float) usub(x, y *Float) { ex = ey } - // operands may have cancelled each other out + // operands may have canceled each other out if len(z.mant) == 0 { z.acc = Exact z.form = zero |