given_Convertible_RationalNumber_WholeNumber

com.phasmidsoftware.number.algebra.eager.RationalNumber.given_Convertible_RationalNumber_WholeNumber

Provides a given instance of the Convertible type class to enable the conversion of a WholeNumber into a RationalNumber.

This implementation defines the convert method, which delegates the conversion of a WholeNumber to its corresponding RationalNumber representation by invoking the toRationalNumber method on the WholeNumber instance.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Transforms an instance of type U into type T by applying a specific operation, optionally using an additional parameter of type T.

Transforms an instance of type U into type T by applying a specific operation, optionally using an additional parameter of type T.

Value parameters

t

a template object of type T that might assist in the conversion

u

the source object of type U to be converted

Attributes

Returns

the converted object of type T