diff options
author | Ken Thompson <ken@golang.org> | 2008-07-08 20:48:41 -0700 |
---|---|---|
committer | Ken Thompson <ken@golang.org> | 2008-07-08 20:48:41 -0700 |
commit | 7a74340f6c31db36b4f04b71407db9a137c1f36e (patch) | |
tree | a6d555256fd9b1fbdef9694f105c42754241d004 /src/lib/math/pow.go | |
parent | 6f5a0bd20bc136f6306b4ebb07efe63345311e6d (diff) | |
download | golang-7a74340f6c31db36b4f04b71407db9a137c1f36e.tar.gz |
converted double to float64
SVN=126446
Diffstat (limited to 'src/lib/math/pow.go')
-rw-r--r-- | src/lib/math/pow.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/math/pow.go b/src/lib/math/pow.go index 958bb371c..2581f8d33 100644 --- a/src/lib/math/pow.go +++ b/src/lib/math/pow.go @@ -15,9 +15,9 @@ export pow */ func -pow(arg1,arg2 double) double +pow(arg1,arg2 float64) float64 { - var temp double; + var temp float64; var l long; if arg2 < 0 { @@ -60,10 +60,10 @@ pow(arg1,arg2 double) double if l&1 != 0 { temp = temp*arg1; } - l = l>>1; + l >>= 1; if l == 0 { return temp; } - arg1 = arg1*arg1; + arg1 *= arg1; } } |