mirror of
https://github.com/golang/go
synced 2024-11-18 11:44:45 -07:00
math: change Nextafter64 to Nextafter in the description of Nextafter
Change-Id: I3419d6247fbff36aa1ed5451bb3cfb7502c3d07e Reviewed-on: https://go-review.googlesource.com/5030 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
04774336b1
commit
277eddb8f2
@ -29,9 +29,9 @@ func Nextafter32(x, y float32) (r float32) {
|
||||
// Nextafter returns the next representable float64 value after x towards y.
|
||||
//
|
||||
// Special cases are:
|
||||
// Nextafter64(x, x) = x
|
||||
// Nextafter64(NaN, y) = NaN
|
||||
// Nextafter64(x, NaN) = NaN
|
||||
// Nextafter(x, x) = x
|
||||
// Nextafter(NaN, y) = NaN
|
||||
// Nextafter(x, NaN) = NaN
|
||||
func Nextafter(x, y float64) (r float64) {
|
||||
switch {
|
||||
case IsNaN(x) || IsNaN(y): // special case
|
||||
|
Loading…
Reference in New Issue
Block a user