public final class Float64 extends Number<Float64> implements Field<Float64>
This class represents a 64 bits floating point number.
Modifier and Type | Field and Description |
---|---|
static Float64 |
ONE
The 64 bits floating point representing one.
|
static Float64 |
ZERO
The 64 bits floating point representing zero.
|
Modifier and Type | Method and Description |
---|---|
Float64 |
abs()
Returns the absolute value of this number.
|
int |
compareTo(double value)
Compares this number with the specified value for order.
|
int |
compareTo(Float64 that)
Compares this number with the specified number for order.
|
Float64 |
copy()
Returns a copy of this number
allocated
by the calling thread (possibly on the stack). |
Float64 |
divide(double value)
Returns this number divided by the specified value.
|
Float64 |
divide(Float64 that)
Returns this number divided by the one specified.
|
double |
doubleValue()
Returns the value of this number as a
double . |
boolean |
equals(double value)
Indicates if this number is equal to the specified value.
|
boolean |
equals(java.lang.Object that)
Compares this number against the specified object.
|
Float64 |
exp()
Returns the exponential number e raised to the power of this
number.
|
int |
hashCode()
Returns the hash code for this number.
|
Float64 |
inverse()
Returns the reciprocal of this number.
|
boolean |
isInfinite()
Indicates if this number is infinite.
|
boolean |
isLargerThan(Float64 that)
Compares the absolute value of this number with that number.
|
boolean |
isNaN()
Indicates if this number is not a number.
|
Float64 |
log()
Returns the natural logarithm (base e) of this number.
|
long |
longValue()
Returns the value of this number as a
long . |
Float64 |
minus(double value)
Returns the difference between this number and the specified value.
|
Float64 |
minus(Float64 that)
Returns the difference between this number and the one specified.
|
Float64 |
opposite()
Returns the opposite of this number.
|
Float64 |
plus(double value)
Returns the sum of this number with the specified value.
|
Float64 |
plus(Float64 that)
Returns the sum of this number with the one specified.
|
Float64 |
pow(double e)
Returns this number raised to the specified power.
|
Float64 |
pow(Float64 that)
Returns this number raised to the power of the specified exponent.
|
long |
round()
Returns the closest integer value to this 64 bits floating point number.
|
Float64 |
sqrt()
Returns the positive square root of this number.
|
Float64 |
times(double value)
Returns the product of this number with the specified value.
|
Float64 |
times(Float64 that)
Returns the product of this number with the one specified.
|
javolution.text.Text |
toText()
Returns the decimal text representation of this number.
|
static Float64 |
valueOf(java.lang.CharSequence chars)
Returns the number for the specified character sequence.
|
static Float64 |
valueOf(double doubleValue)
Returns the 64 bits float from the specified
double value. |
byteValue, floatValue, intValue, isGreaterThan, isLessThan, pow, shortValue, toString
public static Float64 valueOf(double doubleValue)
double
value.doubleValue
- the double
value for this number.doubleValue()
public static Float64 valueOf(java.lang.CharSequence chars)
chars
- the character sequence.public boolean isInfinite()
true
if this number is infinite;
false
otherwise.public boolean isNaN()
true
if this number is NaN;
false
otherwise.public long round()
public Float64 opposite()
opposite
in interface GroupAdditive<Float64>
-this
.public Float64 plus(Float64 that)
plus
in interface GroupAdditive<Float64>
that
- the number to be added.this + that
.public Float64 plus(double value)
value
- the value to be added.this + value
.public Float64 minus(Float64 that)
public Float64 minus(double value)
value
- the value to be subtracted.this - value
.public Float64 times(double value)
value
- the value multiplier.this · value
.public Float64 inverse()
inverse
in interface GroupMultiplicative<Float64>
1 / this
.public Float64 divide(Float64 that)
that
- the number divisor.this / that
.public Float64 divide(double value)
value
- the value divisor.this / value
.public boolean isLargerThan(Float64 that)
isLargerThan
in class Number<Float64>
that
- the number to compare with.|this| > |that|
public Float64 exp()
exp(this)
.public Float64 pow(Float64 that)
that
- the exponent.this**that
.public Float64 pow(double e)
e
- the exponent.this**e
.public javolution.text.Text toText()
public boolean equals(java.lang.Object that)
public boolean equals(double value)
value
- the value to compare with.this.doubleValue() == value
.public int compareTo(double value)
value
- the value to be compared with.public int hashCode()
public long longValue()
Number
long
.public double doubleValue()
Number
double
.doubleValue
in class Number<Float64>
double
.public int compareTo(Float64 that)
Number
(x.compareTo(y)==0) == (x.equals(y))
,