aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-rw-r--r--src/math/big/float.go6
-rw-r--r--src/math/big/float_test.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/math/big/float.go b/src/math/big/float.go
index 1c97ec98c0..0a2887cb5f 100644
--- a/src/math/big/float.go
+++ b/src/math/big/float.go
@@ -48,10 +48,10 @@ const debugFloat = false // enable for debugging
//
// By setting the desired precision to 24 or 53 and using matching rounding
// mode (typically [ToNearestEven]), Float operations produce the same results
-// as the corresponding float32 or float64 IEEE-754 arithmetic for operands
+// as the corresponding float32 or float64 IEEE 754 arithmetic for operands
// that correspond to normal (i.e., not denormal) float32 or float64 numbers.
// Exponent underflow and overflow lead to a 0 or an Infinity for different
-// values than IEEE-754 because Float exponents have a much larger range.
+// values than IEEE 754 because Float exponents have a much larger range.
//
// The zero (uninitialized) value for a Float is ready to use and represents
// the number +0.0 exactly, with precision 0 and rounding mode [ToNearestEven].
@@ -73,7 +73,7 @@ type Float struct {
}
// An ErrNaN panic is raised by a [Float] operation that would lead to
-// a NaN under IEEE-754 rules. An ErrNaN implements the error interface.
+// a NaN under IEEE 754 rules. An ErrNaN implements the error interface.
type ErrNaN struct {
msg string
}
diff --git a/src/math/big/float_test.go b/src/math/big/float_test.go
index bb045a0b48..cc842754b5 100644
--- a/src/math/big/float_test.go
+++ b/src/math/big/float_test.go
@@ -519,7 +519,7 @@ func TestFloatRound(t *testing.T) {
}
// TestFloatRound24 tests that rounding a float64 to 24 bits
-// matches IEEE-754 rounding to nearest when converting a
+// matches IEEE 754 rounding to nearest when converting a
// float64 to a float32 (excluding denormal numbers).
func TestFloatRound24(t *testing.T) {
const x0 = 1<<26 - 0x10 // 11...110000 (26 bits)