math - Using Ruby's log with 2 Arguments -


i'm using ruby math.log function , passing 2 arguments , i'm getting sort of error that.

puts math.log(10, 10) 

the error get:

log': wrong number of arguments (2 1) (argumenterror) 

the docs that's how it's supposed work?

http://www.ruby-doc.org/core-2.0/math.html#method-c-log

i take bet , suggest using ruby 1.8.7 in math.log takes 1 argument.


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -