Uses of Class
gnu.math.RatNum
-
Packages that use RatNum Package Description gnu.kawa.functions gnu.kawa.lispexpr gnu.kawa.xml gnu.math Supports various numeric types, including complex numbers, efficient bignums, exact rational numbers, units. -
-
Uses of RatNum in gnu.kawa.functions
Methods in gnu.kawa.functions that return RatNum Modifier and Type Method Description static RatNum
Arithmetic. asRatNum(Object value)
-
Uses of RatNum in gnu.kawa.lispexpr
Methods in gnu.kawa.lispexpr that return RatNum Modifier and Type Method Description static RatNum
LangObjType. coerceRatNum(Object value)
-
Uses of RatNum in gnu.kawa.xml
Subclasses of RatNum in gnu.kawa.xml Modifier and Type Class Description class
XInteger
An integer that is an instance of a more specific integer type. -
Uses of RatNum in gnu.math
Subclasses of RatNum in gnu.math Modifier and Type Class Description class
IntFraction
Implementation of exact rational numbers a ratio of two IntNums.class
IntNum
A class for infinite-precision integers.Methods in gnu.math that return RatNum Modifier and Type Method Description static RatNum
RatNum. add(RatNum x, RatNum y, int k)
static RatNum
RatNum. asRatNumOrNull(Object value)
static RatNum
RatNum. divide(RatNum x, RatNum y)
static RatNum
RatNum. infinity(int sign)
Return exact "rational" infinity.static RatNum
RatNum. make(IntNum num, IntNum den)
static RatNum
RatNum. neg(RatNum x)
RatNum
RatNum. rneg()
static RatNum
RatNum. times(RatNum x, RatNum y)
static RatNum
DFloNum. toExact(double value)
Converts to the closest exact rational value.RatNum
RatNum. toExact()
RatNum
RealNum. toExact()
Convert to an exact number.static RatNum
RatNum. valueOf(BigDecimal value)
Methods in gnu.math with parameters of type RatNum Modifier and Type Method Description static RatNum
RatNum. add(RatNum x, RatNum y, int k)
static int
RatNum. compare(RatNum x, RatNum y)
static RatNum
RatNum. divide(RatNum x, RatNum y)
static boolean
RatNum. equals(RatNum x, RatNum y)
static RatNum
RatNum. neg(RatNum x)
static RatNum
RatNum. times(RatNum x, RatNum y)
static IntNum
RealNum. toScaledInt(RatNum r, int k)
Convert rational to (rounded) integer, after multiplying by 10**k.
-