given_Convertible_RationalNumber_Real
com.phasmidsoftware.number.algebra.eager.RationalNumber.given_Convertible_RationalNumber_Real
object given_Convertible_RationalNumber_Real extends Convertible[RationalNumber, Real]
Provides an instance of the Convertible typeclass for transforming an instance of Real into a RationalNumber.
This conversion attempts to recover a RationalNumber representation from a given Real object. If the Real instance cannot be converted into a RationalNumber, an AlgebraException is thrown describing the failure.
Attributes
- Returns
-
a
RationalNumberinstance that is equivalent to the providedReal, if the conversion is successful - Note
-
Throws an com.phasmidsoftware.number.algebra.util.AlgebraException if the conversion fails.
- Graph
-
- Supertypes
- Self type
Members list
In this article