public abstract class DoubleFunction
extends java.lang.Object
Basic functions for type double
.
Constructor and Description |
---|
DoubleFunction() |
Modifier and Type | Method and Description |
---|---|
static byte |
byteValue(double value)
Return
value converted to type byte . |
static int |
intValue(double value)
Return
value converted to type int . |
static boolean |
isFinite(double value)
Return
true if value is finite. |
static boolean |
isInfinite(double value)
Return
true if value is infinite. |
static boolean |
isNaN(double value)
Return
true if value is not-a-number. |
static long |
longValue(double value)
Return
value converted to type long . |
static short |
shortValue(double value)
Return
value converted to type short . |
static java.lang.String |
toExponential(double value)
|
static java.lang.String |
toExponential(double value,
int fractionDigits)
See Also:
|
static java.lang.String |
toFixed(double value,
int fractionDigits)
Return
value converted to type string in fixed-point format. |
static java.lang.String |
toString(double value)
Return
value converted to type string in XML Schema format. |
public static byte byteValue(double value)
Return value
converted to type byte
.
value
- Source value.value
converted to type byte
.public static int intValue(double value)
Return value
converted to type int
.
value
- Source value.value
converted to type int
.public static boolean isFinite(double value)
Return true
if value
is finite.
value
- Source value.true
if value
is finite.public static boolean isInfinite(double value)
Return true
if value
is infinite.
value
- Source value.true
if value
is infinite.public static boolean isNaN(double value)
Return true
if value
is not-a-number.
value
- Source value.true
if value
is not-a-number.public static long longValue(double value)
Return value
converted to type long
.
value
- Source value.value
converted to type long
.public static short shortValue(double value)
Return value
converted to type short
.
value
- Source value.value
converted to type short
.public static java.lang.String toExponential(double value)
public static java.lang.String toExponential(double value, int fractionDigits)
JavaScript Number.prototype.toExponential.
value
- Source value.fractionDigits
- Number of fractional digits after the decimal point (defaults to 16).public static java.lang.String toFixed(double value, int fractionDigits)
Return value
converted to type string
in fixed-point format.
JavaScript Number.prototype.toFixed.
value
- Source value.fractionDigits
- Number of fractional digits after the decimal point.public static java.lang.String toString(double value)
Return value
converted to type string
in XML Schema format.
value
- Source value.