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_ |
Returns a Float converted from num. It is equivalent to prec(Float). |
| prec_ |
Returns an Integer converted from num. It is equivalent to prec(Integer). |
<code/>and<pre/>for code samples.