Module

Precision

Precision is a mixin for concrete numeric classes with precision. Here, `precision’ means the fineness of approximation of a real number, so, this module should not be included into anything which is not a subset of Real (so it should not be included in classes such as Complex or Matrix).

Public Methods
included call_seq:
prec Converts self into an instance of klass. By default, prec invokes
prec_f Returns a Float converted from num. It is equivalent to prec(Float).
prec_i Returns an Integer converted from num. It is equivalent to prec(Integer).
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.