summaryrefslogtreecommitdiff
path: root/src/pkg/math/modf.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/modf.go')
-rw-r--r--src/pkg/math/modf.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pkg/math/modf.go b/src/pkg/math/modf.go
index 315174b70..1e8376a93 100644
--- a/src/pkg/math/modf.go
+++ b/src/pkg/math/modf.go
@@ -8,10 +8,11 @@ package math
// that sum to f. Both values have the same sign as f.
//
// Special cases are:
-// Modf(+Inf) = +Inf, NaN
-// Modf(-Inf) = -Inf, NaN
+// Modf(±Inf) = ±Inf, NaN
// Modf(NaN) = NaN, NaN
-func Modf(f float64) (int float64, frac float64) {
+func Modf(f float64) (int float64, frac float64)
+
+func modf(f float64) (int float64, frac float64) {
if f < 1 {
if f < 0 {
int, frac = Modf(-f)