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