зеркало из https://github.com/github/ruby.git
* bignum.c (rb_big_coerce): [DOC] Add docs for Bignum#coerce
Based on patch by Juanito Fatas [Fixes GH-360] https://github.com/ruby/ruby/pull/360 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e068834b5c
Коммит
b39b66f4aa
|
@ -1,3 +1,9 @@
|
|||
Mon Jul 15 11:10:46 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* bignum.c (rb_big_coerce): [DOC] Add docs for Bignum#coerce
|
||||
Based on patch by Juanito Fatas [Fixes GH-360]
|
||||
https://github.com/ruby/ruby/pull/360
|
||||
|
||||
Mon Jul 15 10:56:01 2013 Zachary Scott <e@zzak.io>
|
||||
|
||||
* thread.c (mutex_sleep): [DOC] Awake thread will reacquire lock
|
||||
|
|
12
bignum.c
12
bignum.c
|
@ -5898,7 +5898,17 @@ rb_big_hash(VALUE x)
|
|||
}
|
||||
|
||||
/*
|
||||
* MISSING: documentation
|
||||
* call-seq:
|
||||
* big.coerce(numeric) -> array
|
||||
*
|
||||
* Returns an array with both a +numeric+ and a +big+ represented as Bignum
|
||||
* objects.
|
||||
*
|
||||
* This is achieved by converting +numeric+ to a Bignum.
|
||||
*
|
||||
* A TypeError is raised if the +numeric+ is not a Fixnum or Bignum type.
|
||||
*
|
||||
* (0x3FFFFFFFFFFFFFFF+1).coerce(42) #=> [42, 4611686018427387904]
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Загрузка…
Ссылка в новой задаче