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

ruby-changes:12260

From: tadf <ko1@a...>
Date: Fri, 3 Jul 2009 23:02:46 +0900 (JST)
Subject: [ruby-changes:12260] Ruby:r23950 (trunk): added examples.

tadf	2009-07-03 23:02:38 +0900 (Fri, 03 Jul 2009)

  New Revision: 23950

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23950

  Log:
    added examples.

  Modified files:
    trunk/complex.c

Index: complex.c
===================================================================
--- complex.c	(revision 23949)
+++ complex.c	(revision 23950)
@@ -1536,6 +1536,8 @@
  * For example:
  *
  *    '9'.to_c           #=> (9+0i)
+ *    '2.5'.to_c         #=> (2.5+0i)
+ *    '2.5/1'.to_c       #=> ((5/2)+0i)
  *    '-3/2'.to_c        #=> ((-3/2)+0i)
  *    '-i'.to_c          #=> (0-1i)
  *    '45i'.to_c         #=> (0+45i)

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

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