summary refs log tree commit diff stats
path: root/lib/pure/complex.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-03-20 01:07:34 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-03-20 01:07:34 +0100
commitc5d8a5c1da9618d65ff08cb0ab6b084e07493b49 (patch)
tree558f4e7acd87dff73965f06827bcee284b639844 /lib/pure/complex.nim
parent33fbf7fd03145d1de6023edee9c002aec982ffc7 (diff)
downloadNim-c5d8a5c1da9618d65ff08cb0ab6b084e07493b49.tar.gz
Bugfix: empty echo statement
Diffstat (limited to 'lib/pure/complex.nim')
-rwxr-xr-xlib/pure/complex.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/complex.nim b/lib/pure/complex.nim
index f50ff4bd0..f597a09e1 100755
--- a/lib/pure/complex.nim
+++ b/lib/pure/complex.nim
@@ -97,7 +97,7 @@ proc sqrt*(z: TComplex): TComplex =
       w = sqrt(y) * sqrt(0.5 * (r + sqrt(1.0 + r * r)))
     if z.re >= 0.0:
       result.re = w
-      result.im = z.im / (w * 2)
+      result.im = z.im / (w * 2.0)
     else:
       if z.im >= 0.0: result.im = w
       else:           result.im = -w