mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* rational.c; edited rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f86ad72d2a
commit
ed0bdbc575
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Jun 19 22:58:16 2009 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
|
* rational.c; edited rdoc.
|
||||||
|
|
||||||
Fri Jun 19 22:21:17 2009 Tadayoshi Funaba <tadf@dotrb.org>
|
Fri Jun 19 22:21:17 2009 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* numeric.c: edited rdoc.
|
* numeric.c: edited rdoc.
|
||||||
|
|
11
rational.c
11
rational.c
|
@ -1798,6 +1798,11 @@ integer_denominator(VALUE self)
|
||||||
* flo.numerator => integer
|
* flo.numerator => integer
|
||||||
*
|
*
|
||||||
* Returns the numerator of _flo_ as an +Integer+ object.
|
* 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
|
static VALUE
|
||||||
float_numerator(VALUE self)
|
float_numerator(VALUE self)
|
||||||
|
@ -1813,6 +1818,11 @@ float_numerator(VALUE self)
|
||||||
* flo.denominator => integer
|
* flo.denominator => integer
|
||||||
*
|
*
|
||||||
* Returns the denominator of _flo_ as an +Integer+ object.
|
* 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
|
static VALUE
|
||||||
float_denominator(VALUE self)
|
float_denominator(VALUE self)
|
||||||
|
@ -1839,7 +1849,6 @@ nilclass_to_r(VALUE self)
|
||||||
return rb_rational_new1(INT2FIX(0));
|
return rb_rational_new1(INT2FIX(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* int.to_r => rational
|
* int.to_r => rational
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue