given_Convertible_Real_RationalNumber
com.phasmidsoftware.number.algebra.eager.Real.given_Convertible_Real_RationalNumber
object given_Convertible_Real_RationalNumber extends Convertible[Real, RationalNumber]
Provides a given instance of the Convertible typeclass to enable conversion from an instance of RationalNumber to an instance of Real.
This given instance defines a concrete implementation of the convert method that transforms a RationalNumber into a Real by utilizing the toDouble method of the RationalNumber class. The convert method takes a Real witness object (serving as a prototype for the conversion) and a RationalNumber to be converted.
The resulting Real is constructed using the numeric value of the RationalNumber (converted to a Double) and the default fuzziness of the Real.
Attributes
- Graph
-
- Supertypes
- Self type
Members list
In this article