[前][次][番号順一覧][スレッド一覧]

ruby-changes:46466

From: stomar <ko1@a...>
Date: Sat, 6 May 2017 16:28:45 +0900 (JST)
Subject: [ruby-changes:46466] stomar:r58582 (trunk): math.c: improve docs for Math.sqrt

stomar	2017-05-06 16:28:40 +0900 (Sat, 06 May 2017)

  New Revision: 58582

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58582

  Log:
    math.c: improve docs for Math.sqrt
    
    * math.c: [DOC] mention Integer.sqrt in docs for Math.sqrt.

  Modified files:
    trunk/math.c
Index: math.c
===================================================================
--- math.c	(revision 58581)
+++ math.c	(revision 58582)
@@ -596,7 +596,7 @@ math_log10(VALUE unused_obj, VALUE x) https://github.com/ruby/ruby/blob/trunk/math.c#L596
  *
  *    Math.sqrt(10**46).to_i  #=> 99999999999999991611392 (!)
  *
- *  See also BigDecimal#sqrt.
+ *  See also BigDecimal#sqrt and Integer.sqrt.
  */
 
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]