Modifier and Type | Method and Description |
---|---|
static int |
hashCode(double value)
Returns a hash code for a
double value; compatible with
Double.hashCode() . |
static boolean |
isFinite(double d)
Returns
true if the argument is a finite floating-point
value; returns false otherwise (for NaN and infinity
arguments). |
static double |
max(double a,
double b)
Returns the greater of two
double values
as if by calling Math.max . |
static double |
min(double a,
double b)
Returns the smaller of two
double values
as if by calling Math.min . |
static double |
sum(double a,
double b)
Adds two
double values together as per the + operator. |
public static int hashCode(double value)
double
value; compatible with
Double.hashCode()
.value
- the value to hashdouble
value.public static double sum(double a, double b)
double
values together as per the + operator.
See The Java™ Language Specification:
4.2.4 Floating-Point Operations
a
- the first operandb
- the second operanda
and b
BinaryOperator
public static double max(double a, double b)
double
values
as if by calling Math.max
.a
- the first operandb
- the second operanda
and b
BinaryOperator
public static double min(double a, double b)
double
values
as if by calling Math.min
.a
- the first operandb
- the second operanda
and b
.BinaryOperator
public static boolean isFinite(double d)
true
if the argument is a finite floating-point
value; returns false
otherwise (for NaN and infinity
arguments).d
- the double
value to be testedtrue
if the argument is a finite
floating-point value, false
otherwise.Copyright © 2018. All rights reserved.