java.lang.Object
org.zfcj.math.numbers.PositiveInfinity
- All Implemented Interfaces:
Comparable<RealNumber>,Number,RealNumber
Represents an actualized positive infinity, denoted as +∞,
a
RealNumber greater than any other RealNumber-
Field Summary
Fields -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zfcj.math.numbers.RealNumber
abs, almostEquals, almostEquals, dividedBy, greaterThan, greaterThanOrEqualTo, lessThan, lessThanOrEqualTo, minus, modulo, plus, pow, times, truncate
-
Field Details
-
ᐩINFINITY
-
-
Method Details
-
doubleValue
public double doubleValue()Description copied from interface:RealNumberReturns thisRealNumber's value with double-precision type. Note that the value will be an approximation for irrational numbers such as Pi, Phi, e or repeating decimals such as 0.666..., 1.851851851..., etc.- Specified by:
doubleValuein interfaceRealNumber- Returns:
- the double value that is the closest approximation to this real number
-
bigDecimalValue
Description copied from interface:RealNumberReturns thisRealNumber's value as aBigDecimal- Specified by:
bigDecimalValuein interfaceRealNumber- Returns:
- the
BigDecimalvalue
-
isDouble
public boolean isDouble()Description copied from interface:RealNumberDetermines if thisRealNumber's value has the precision of a primitive double- Specified by:
isDoublein interfaceRealNumber- Returns:
- true if this
RealNumberis double precision, false, if BigDecimal precision
-
compareTo
- Specified by:
compareToin interfaceComparable<RealNumber>- Specified by:
compareToin interfaceRealNumber
-
hashCode
public int hashCode() -
equals
-
toString
-