java.lang.Object
coneforest.psylla.core.PsyBigFraction
- All Implemented Interfaces:
PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyAtomic,PsyConvertableToInteger,PsyConvertableToIntegral,PsyConvertableToRational,PsyConvertableToReal,PsyMultiplicative<PsyNumeric>,PsyNumeric,PsyObject,PsyRational,PsyRealNumeric,PsyScalar<PsyRealNumeric>,Comparable<PsyRealNumeric>
The representation of
bigfraction.-
Field Summary
Fields inherited from interface coneforest.psylla.core.PsyAdditive
PSY_ADD, PSY_ISZERO, PSY_NEG, PSY_NONZERO, PSY_SUBFields inherited from interface coneforest.psylla.core.PsyConvertableToInteger
PSY_TOINTEGERFields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRALFields inherited from interface coneforest.psylla.core.PsyConvertableToRational
PSY_TORATIONALFields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREALFields inherited from interface coneforest.psylla.core.PsyMultiplicative
PSY_DIV, PSY_MUL, PSY_RECIPROCALFields inherited from interface coneforest.psylla.core.PsyNumeric
PSY_ABS, PSY_ACOS, PSY_ASIN, PSY_ATAN, PSY_CBRT, PSY_COS, PSY_COSH, PSY_EXP, PSY_LOG, PSY_POW, PSY_SIGNUM, PSY_SIN, PSY_SINH, PSY_SQRT, PSY_TAN, PSY_TANHFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPEFields inherited from interface coneforest.psylla.core.PsyRational
PSY_DENOMINATOR, PSY_NUMERATORFields inherited from interface coneforest.psylla.core.PsyRealNumeric
PSY_CEILING, PSY_FLOOR, PSY_HYPOT, PSY_ROUND -
Method Summary
Modifier and TypeMethodDescriptiondoubleintintValue()longstatic PsyRationalof(BigInteger numerator, BigInteger denominator) Returns anintegraldenominator of this fraction.psyFloor()Returns abooleanindicating whether this object represents a zero value.Returns anintegralnumerator of this fraction.psyRound()Returns thenumericsignum of this object.Returns the syntactic representation of this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface coneforest.psylla.core.PsyAdditive
psyNonZeroMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeNameMethods inherited from interface coneforest.psylla.core.PsyRational
compareTo, psyAbs, psyAdd, psyDiv, psyMul, psyNeg, psyReciprocal, psySub, psyToRational, rationalValue
-
Method Details
-
of
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein interfacePsyRealNumeric
-
longValue
public long longValue()- Specified by:
longValuein interfacePsyRealNumeric
-
bigIntegerValue
- Specified by:
bigIntegerValuein interfacePsyRational
-
psyNumerator
Description copied from interface:PsyRationalReturns anintegralnumerator of this fraction.- Specified by:
psyNumeratorin interfacePsyRational- Returns:
- the numerator.
-
psyDenominator
Description copied from interface:PsyRationalReturns anintegraldenominator of this fraction.- Specified by:
psyDenominatorin interfacePsyRational- Returns:
- the denominator.
-
psyFloor
- Specified by:
psyFloorin interfacePsyRational- Specified by:
psyFloorin interfacePsyRealNumeric
-
psyCeiling
- Specified by:
psyCeilingin interfacePsyRational- Specified by:
psyCeilingin interfacePsyRealNumeric
-
intValue
public int intValue()- Specified by:
intValuein interfacePsyRealNumeric
-
psyIsZero
Description copied from interface:PsyAdditiveReturns abooleanindicating whether this object represents a zero value.- Specified by:
psyIsZeroin interfacePsyAdditive<PsyNumeric>- Returns:
- a
booleanindicating whether this object represents a zero value.
-
psyToIntegral
- Specified by:
psyToIntegralin interfacePsyConvertableToIntegral
-
psyRound
- Specified by:
psyRoundin interfacePsyRealNumeric
-
psySignum
Description copied from interface:PsyNumericReturns thenumericsignum of this object.- Specified by:
psySignumin interfacePsyNumeric- Returns:
- the
numericsignum.
-
toSyntaxString
Description copied from interface:PsyObjectReturns the syntactic representation of this object.- Specified by:
toSyntaxStringin interfacePsyObject- Returns:
- the syntactic representation of this object.
-