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, wait
Methods 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:RealNumber
Returns 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:
doubleValue
in interfaceRealNumber
- Returns:
- the double value that is the closest approximation to this real number
-
bigDecimalValue
Description copied from interface:RealNumber
Returns thisRealNumber
's value as aBigDecimal
- Specified by:
bigDecimalValue
in interfaceRealNumber
- Returns:
- the
BigDecimal
value
-
isDouble
public boolean isDouble()Description copied from interface:RealNumber
Determines if thisRealNumber
's value has the precision of a primitive double- Specified by:
isDouble
in interfaceRealNumber
- Returns:
- true if this
RealNumber
is double precision, false, if BigDecimal precision
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RealNumber>
- Specified by:
compareTo
in interfaceRealNumber
-
hashCode
public int hashCode() -
equals
-
toString
-