Package edu.jas.poly
Class RatToDec<C extends Element<C> & Rational>
- java.lang.Object
-
- edu.jas.poly.RatToDec<C>
-
- All Implemented Interfaces:
UnaryFunctor<C,BigDecimal>
class RatToDec<C extends Element<C> & Rational> extends java.lang.Object implements UnaryFunctor<C,BigDecimal>
Conversion of Rational to BigDecimal. result = decimal(r).
-
-
Constructor Summary
Constructors Constructor Description RatToDec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
eval(C c)
Evaluate.
-
-
-
Method Detail
-
eval
public BigDecimal eval(C c)
Description copied from interface:UnaryFunctor
Evaluate.- Specified by:
eval
in interfaceUnaryFunctor<C extends Element<C> & Rational,BigDecimal>
- Returns:
- evaluated element.
-
-