Method: Math.log10

Defined in:
lib/source/ruby.rb

.log10(x) ⇒ Object

call-seq:

Math.log10(x) -> numeric

Returns the base 10 logarithm of x.



1679
1680
1681
1682
# File 'lib/source/ruby.rb', line 1679

def self.log10(x)
  `if(x==0){return -Infinity;}`
  `Math.log(x)/Math.log(10)`
end