summaryrefslogtreecommitdiff
path: root/src/pkg/math/floor.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/floor.go')
-rw-r--r--src/pkg/math/floor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/math/floor.go b/src/pkg/math/floor.go
index 7a999852d..96532acbd 100644
--- a/src/pkg/math/floor.go
+++ b/src/pkg/math/floor.go
@@ -10,7 +10,7 @@ func Floor(x float64) float64 {
if x < 0 {
d, fract := Modf(-x);
if fract != 0.0 {
- d = d+1
+ d = d + 1
}
return -d;
}