summaryrefslogtreecommitdiff
path: root/src/pkg/math/gamma.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/gamma.go')
-rw-r--r--src/pkg/math/gamma.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/math/gamma.go b/src/pkg/math/gamma.go
index 4c5b17d05..73ca0e53a 100644
--- a/src/pkg/math/gamma.go
+++ b/src/pkg/math/gamma.go
@@ -151,7 +151,7 @@ func Gamma(x float64) float64 {
}
// Reduce argument
- z := float64(1)
+ z := 1.0
for x >= 3 {
x = x - 1
z = z * x