coerce(p1)
public
Returns an array with both a numeric and a float
represented as Float objects.
This is achieved by converting a numeric to a Float.
1.2.coerce(3)
2.5.coerce(1.1)
Show source
static VALUE
flo_coerce(VALUE x, VALUE y)
{
return rb_assoc_new(rb_Float(y), x);
}