mirror of
https://github.com/golang/go
synced 2024-11-26 11:08:38 -07:00
test: fix two typos in float_lit2.go
Noted by gri in CL 100660044 review but I missed them. TBR=gri CC=golang-codereviews https://golang.org/cl/97570049
This commit is contained in:
parent
2de449e7a0
commit
cab54408da
@ -18,7 +18,7 @@ import (
|
|||||||
// Float32 conversion rounds to the nearest float32, rounding to even mantissa:
|
// Float32 conversion rounds to the nearest float32, rounding to even mantissa:
|
||||||
// between f₁ and f₂, values closer to f₁ round to f₁ and values closer to f₂ are rejected as out of range.
|
// between f₁ and f₂, values closer to f₁ round to f₁ and values closer to f₂ are rejected as out of range.
|
||||||
// f₁ is an odd mantissa, so the halfway point (f₁+f₂)/2 rounds to f₂ and is rejected.
|
// f₁ is an odd mantissa, so the halfway point (f₁+f₂)/2 rounds to f₂ and is rejected.
|
||||||
// The halfway point (f₁+f₂)/2 = 2¹²⁸ - 2¹⁰⁵.
|
// The halfway point is (f₁+f₂)/2 = 2¹²⁸ - 2¹⁰⁵.
|
||||||
//
|
//
|
||||||
// The same is true of float64, with different constants: s/24/53/ and s/128/1024/.
|
// The same is true of float64, with different constants: s/24/53/ and s/128/1024/.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user