summaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-16 11:12:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-16 11:12:11 +0000
commitf285ad8045760f632fa0416ea747944af931473a (patch)
tree51f81cce5f449343cc4afed839f69fc0bc461e99 /math.c
parentbb7796dddf42835d3417a89b59dea352c775e3f5 (diff)
downloadruby-f285ad8045760f632fa0416ea747944af931473a.tar.gz
ruby-f285ad8045760f632fa0416ea747944af931473a.tar.xz
ruby-f285ad8045760f632fa0416ea747944af931473a.zip
* math.c (math_log): update document to mention second optional
argument for logarithm base. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/math.c b/math.c
index 2675c71e6..bd0284900 100644
--- a/math.c
+++ b/math.c
@@ -305,8 +305,11 @@ math_exp(VALUE obj, VALUE x)
/*
* call-seq:
* Math.log(numeric) => float
+ * Math.log(num,base) => float
*
* Returns the natural logarithm of <i>numeric</i>.
+ * If additional second argument is given, it will be the base
+ * of logarithm.
*/
static VALUE