From: Makoto Kishimoto Date: 2011-09-02T17:46:03+09:00 Subject: [ruby-dev:44452] [Ruby 1.9 - Bug #5267][Open] BigDecimal#sqrt の rdoc で、引数は必須 Issue #5267 has been reported by Makoto Kishimoto. ---------------------------------------- Bug #5267: BigDecimal#sqrt の rdoc で、引数は必須 http://redmine.ruby-lang.org/issues/5267 Author: Makoto Kishimoto Status: Open Priority: Normal Assignee: Category: DOC Target version: 1.9.x ruby -v: ruby 1.9.4dev (2011-07-18 trunk 32577) [x86_64-freebsd8.2] ソース中の rdoc の記述では、BigDecimal#sqrt の引数は必須でないように 読めるが、必須なのでそのように。 diff --git ext/bigdecimal/bigdecimal.c ext/bigdecimal/bigdecimal.c index 86070af..e70406a 100644 --- ext/bigdecimal/bigdecimal.c +++ ext/bigdecimal/bigdecimal.c @@ -1439,7 +1439,7 @@ BigDecimal_abs(VALUE self) * * Returns the square root of the value. * - * If n is specified, returns at least that many significant digits. + * Result has at least n significant digits. */ static VALUE BigDecimal_sqrt(VALUE self, VALUE nFig) -- http://redmine.ruby-lang.org