mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add #flo_coerce documentation.
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
79fdc67835
commit
eb5de217f1
1 changed files with 9 additions and 1 deletions
10
numeric.c
10
numeric.c
|
@ -668,7 +668,15 @@ flo_to_s(VALUE flt)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MISSING: documentation
|
* call-seq:
|
||||||
|
* flt.flo_coerce(numeric) -> array
|
||||||
|
*
|
||||||
|
* Returns an array with both <i>aNumeric</i> and <i>flt</i> represented
|
||||||
|
* as <code>Float</code> objects.
|
||||||
|
* This is achieved by converting <i>aNumeric</i> to a <code>Float</code>.
|
||||||
|
*
|
||||||
|
* 1.2.coerce(3) #=> [3.0, 1.2]
|
||||||
|
* 2.5.coerce(1.1) #=> [1.1, 2.5]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Add table
Reference in a new issue