Package coneforest.psylla.core
Interface PsyRational
- All Superinterfaces:
PsyAdditive<PsyNumeric>
,PsyArithmetic<PsyNumeric>
,PsyAtomic
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToName
,PsyConvertableToReal
,PsyConvertableToString
,PsyMultiplicative<PsyNumeric>
,PsyNumeric
,PsyObject
,PsyRealNumeric
,PsyScalar<PsyRealNumeric>
- All Known Subinterfaces:
PsyIntegral
- All Known Implementing Classes:
PsyBigFractional
,PsyBigInteger
,PsyFractional
,PsyInteger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault int
cmp
(PsyRealNumeric oNumeric) static PsyRational
of
(PsyIntegral oNumerator, PsyIntegral oDenominator) static PsyRational
parseLiteral
(String image) Returns anintegral
representing a denominator of this fraction.psyFloor()
Returns anintegral
representing a numerator of this fraction.Methods inherited from interface coneforest.psylla.core.PsyAdditive
psyIsZero, psyNotZero
Methods inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
psyToIntegral
Methods inherited from interface coneforest.psylla.core.PsyNumeric
psySignum
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
Methods inherited from interface coneforest.psylla.core.PsyRealNumeric
doubleValue, imagValue, intValue, longValue, psyAbs, psyAcos, psyAdd, psyAdd, psyAsin, psyAtan, psyCbrt, psyCmp, psyCos, psyCosh, psyDiv, psyDiv, psyEq, psyExp, psyGe, psyGt, psyHypot, psyLe, psyLog, psyLt, psyMul, psyMul, psyNeg, psyPow, psyPow, psyRound, psySin, psySinh, psySqrt, psySub, psySub, psyTan, psyTanh, psyToInteger, psyToReal, realValue
-
Field Details
-
OPERATORS
-
-
Method Details
-
bigIntegerValue
BigInteger bigIntegerValue() -
psyNumerator
PsyIntegral psyNumerator()Returns anintegral
representing a numerator of this fraction.- Returns:
- the numerator.
-
psyDenominator
PsyIntegral psyDenominator()Returns anintegral
representing a denominator of this fraction.- Returns:
- the denominator.
-
psyCeiling
PsyIntegral psyCeiling()- Specified by:
psyCeiling
in interfacePsyRealNumeric
-
psyFloor
PsyIntegral psyFloor()- Specified by:
psyFloor
in interfacePsyRealNumeric
-
of
static PsyRational of(PsyIntegral oNumerator, PsyIntegral oDenominator) throws PsyUndefinedResultException - Throws:
PsyUndefinedResultException
-
cmp
- Specified by:
cmp
in interfacePsyRealNumeric
-
parseLiteral
static PsyRational parseLiteral(String image) throws PsySyntaxErrorException, PsyUndefinedResultException
-