coerce(p1)
public
Returns an array with both numeric and float represented
as Float objects.
This is achieved by converting 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);
}