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@23964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
95b71ae3fb
commit
2db8644039
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Jul 6 00:41:41 2009 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* rational.c: edited rdoc.
|
||||
|
||||
Sun Jul 5 23:55:57 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* time.c (find_time_t): fix Time.local(2009,2,31) failure on 64bit
|
||||
|
|
10
rational.c
10
rational.c
|
@ -542,10 +542,10 @@ nurat_numerator(VALUE self)
|
|||
*
|
||||
* For example:
|
||||
*
|
||||
* Rational(7).denominator #=> 1
|
||||
* Rational(7, 1).denominator #=> 1
|
||||
* Rational(9, -4).denominator #=> 4
|
||||
* Rational(-2, -10).denominator #=> 5
|
||||
* Rational(7).denominator #=> 1
|
||||
* Rational(7, 1).denominator #=> 1
|
||||
* Rational(9, -4).denominator #=> 4
|
||||
* Rational(-2, -10).denominator #=> 5
|
||||
* rat.numerator.gcd(rat.denominator) #=> 1
|
||||
*/
|
||||
static VALUE
|
||||
|
@ -1557,7 +1557,7 @@ integer_numerator(VALUE self)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* int.numerator -> 1
|
||||
* int.denominator -> 1
|
||||
*
|
||||
* Returns 1.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue