I see this call in the ruby source
return rb_num_coerce_bin(x, y);
What does the _bin stand for and what does this function do?
Thanks
···
–
Jim Freeze
Paranoid schizophrenics outnumber their enemies at least two to one.
I see this call in the ruby source
return rb_num_coerce_bin(x, y);
What does the _bin stand for and what does this function do?
Thanks
Paranoid schizophrenics outnumber their enemies at least two to one.
Quick check from the source makes it seem like it acts just like
Numeric.coerce:
$ ri coerce
--------------------------------------------------------- Numeric#coerce
num.coerce( aNumeric ) → anArray
On Sun, 24 Nov 2002, Jim Freeze wrote:
return rb_num_coerce_bin(x, y);
What does the _bin stand for and what does this function do?
If aNumeric is the same type as num, returns an array containing
aNumeric and num. Otherwise, returns an array with both aNumeric
and num represented as Float objects.
The _bin propably refers to the fact that the function takes two arguments.
– Nikodemus