1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* math.c (math_log): update document to mention second optional

argument for logarithm base.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-02-16 11:12:11 +00:00
parent 163163afdf
commit a9e13cc40c
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Feb 16 19:24:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* math.c (math_log): update document to mention second optional
argument for logarithm base.
Fri Feb 16 19:19:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org> Fri Feb 16 19:19:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (mrhs): need to append by arg_append(). * parse.y (mrhs): need to append by arg_append().

3
math.c
View file

@ -305,8 +305,11 @@ math_exp(VALUE obj, VALUE x)
/* /*
* call-seq: * call-seq:
* Math.log(numeric) => float * Math.log(numeric) => float
* Math.log(num,base) => float
* *
* Returns the natural logarithm of <i>numeric</i>. * Returns the natural logarithm of <i>numeric</i>.
* If additional second argument is given, it will be the base
* of logarithm.
*/ */
static VALUE static VALUE