flt.coerce(numeric) â array
Instance Public methods
Returns an array with both aNumeric and flt represented
as Float
objects. This is achieved by converting
aNumeric to a Float
.
1.2.coerce(3) #=> [3.0, 1.2] 2.5.coerce(1.1) #=> [1.1, 2.5]
Please login to continue.