We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7f1d4 commit 3e596d4Copy full SHA for 3e596d4
src/math/modf.go
@@ -11,8 +11,8 @@ package math
11
//
12
// Modf(±Inf) = ±Inf, NaN
13
// Modf(NaN) = NaN, NaN
14
-func Modf(f float64) (int float64, frac float64) {
15
- int = Trunc(f)
16
- frac = Copysign(f-int, f)
+func Modf(f float64) (integer float64, fractional float64) {
+ integer = Trunc(f)
+ fractional = Copysign(f-integer, f)
17
return
18
}
0 commit comments