diff --git a/numeric.c b/numeric.c index 508360159c..2d7dfd4f7e 100644 --- a/numeric.c +++ b/numeric.c @@ -668,7 +668,15 @@ flo_to_s(VALUE flt) } /* - * MISSING: documentation + * call-seq: + * flt.flo_coerce(numeric) -> array + * + * 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] */ static VALUE