ruby-changes:12077
From: tadf <ko1@a...>
Date: Fri, 19 Jun 2009 22:59:26 +0900 (JST)
Subject: [ruby-changes:12077] Ruby:r23747 (trunk): * rational.c; edited rdoc.
tadf 2009-06-19 22:59:08 +0900 (Fri, 19 Jun 2009) New Revision: 23747 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23747 Log: * rational.c; edited rdoc. Modified files: trunk/ChangeLog trunk/rational.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23746) +++ ChangeLog (revision 23747) @@ -1,3 +1,7 @@ +Fri Jun 19 22:58:16 2009 Tadayoshi Funaba <tadf@d...> + + * rational.c; edited rdoc. + Fri Jun 19 22:21:17 2009 Tadayoshi Funaba <tadf@d...> * numeric.c: edited rdoc. Index: rational.c =================================================================== --- rational.c (revision 23746) +++ rational.c (revision 23747) @@ -1798,6 +1798,11 @@ * flo.numerator => integer * * Returns the numerator of _flo_ as an +Integer+ object. + * + * For example: + * + * 0.3.numerator #=> 5404319552844595 # machine dependent + * lambda{|x| x.numerator.fdiv(x.denominator)}.call(0.3) #=> 0.3 */ static VALUE float_numerator(VALUE self) @@ -1813,6 +1818,11 @@ * flo.denominator => integer * * Returns the denominator of _flo_ as an +Integer+ object. + * + * For example: + * + * 0.3.denominator #=> 18014398509481984 # machine dependent + * lambda{|x| x.numerator.fdiv(x.denominator)}.call(0.3) #=> 0.3 */ static VALUE float_denominator(VALUE self) @@ -1839,7 +1849,6 @@ return rb_rational_new1(INT2FIX(0)); } - /* * call-seq: * int.to_r => rational -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/