Skip to content

Commit

Permalink
* rational.c; edited rdoc.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
tadf committed Jun 19, 2009
1 parent f86ad72 commit ed0bdbc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Fri Jun 19 22:58:16 2009 Tadayoshi Funaba <[email protected]>

* rational.c; edited rdoc.

Fri Jun 19 22:21:17 2009 Tadayoshi Funaba <[email protected]>

* numeric.c: edited rdoc.
Expand Down
11 changes: 10 additions & 1 deletion rational.c
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,11 @@ integer_denominator(VALUE self)
* 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)
Expand All @@ -1813,6 +1818,11 @@ float_numerator(VALUE self)
* 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)
Expand All @@ -1839,7 +1849,6 @@ nilclass_to_r(VALUE self)
return rb_rational_new1(INT2FIX(0));
}


/*
* call-seq:
* int.to_r => rational
Expand Down

0 comments on commit ed0bdbc

Please sign in to comment.