diff options
Diffstat (limited to 'lib/cmath.rb')
-rw-r--r-- | lib/cmath.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmath.rb b/lib/cmath.rb index 5b261ed6a8..31c5a59c99 100644 --- a/lib/cmath.rb +++ b/lib/cmath.rb @@ -47,7 +47,7 @@ module CMath end def log10(z) - if z.real? + if z.real? and z >= 0 log10!(z) else log(z) / log!(10) |