We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e6afb commit 65db95dCopy full SHA for 65db95d
src/math/dim.go
@@ -34,6 +34,9 @@ func Dim(x, y float64) float64 {
34
// Max(x, NaN) = Max(NaN, x) = NaN
35
// Max(+0, ±0) = Max(±0, +0) = +0
36
// Max(-0, -0) = -0
37
+//
38
+// Note that this differs from the built-in function max when called
39
+// with NaN and +Inf.
40
func Max(x, y float64) float64 {
41
if haveArchMax {
42
return archMax(x, y)
@@ -67,6 +70,9 @@ func max(x, y float64) float64 {
67
70
// Min(x, -Inf) = Min(-Inf, x) = -Inf
68
71
// Min(x, NaN) = Min(NaN, x) = NaN
69
72
// Min(-0, ±0) = Min(±0, -0) = -0
73
74
+// Note that this differs from the built-in function min when called
75
+// with NaN and -Inf.
76
func Min(x, y float64) float64 {
77
if haveArchMin {
78
return archMin(x, y)
0 commit comments