Module: Precision
Overview
Class Method Summary (collapse)
-
+ included
call_seq:.
Instance Method Summary (collapse)
-
- prec
Converts self into an instance of klass.
-
- prec_f
Returns a Float converted from num.
-
- prec_i
Returns an Integer converted from num.
Class Method Details
Instance Method Details
- (Class) prec(klass)
Converts self into an instance of klass. By default, prec invokes
klass.induced_from(num)
and returns its value. So, if klass.induced_from doesn't return an instance of klass, it will be necessary to reimplement prec.