Class JSNumber
java.lang.Object
org.graalvm.webimage.api.JSValue
org.graalvm.webimage.api.JSNumber
Java representation of a JavaScript
Number value.-
Method Summary
Modifier and TypeMethodDescriptionasByte()asChar()asDouble()asFloat()asInt()asLong()asShort()static doubleepsilon()booleaninthashCode()static booleanisFinite(double number) static booleanstatic booleanisInteger(double number) static booleanstatic booleanisNaN(double number) static booleanstatic booleanisSafeInteger(double number) static booleanisSafeInteger(JSNumber number) static longstatic doublemaxValue()static longstatic doubleminValue()static doublenan()static doublestatic JSNumberof(double d) static doubleparseFloat(String number) static longstatic longstatic doubleprotected StringtoExponential(int fractionDigits) toFixed()toFixed(int digits) toLocaleString(String locales) toLocaleString(String locales, JSObject options) toPrecision(int precision) toString(int radix) typeof()doublevalueOf()Methods inherited from class JSValue
as, asBoolean, asBooleanArray, asByteArray, asCharArray, asDoubleArray, asFloatArray, asIntArray, asLongArray, asShortArray, asString, checkedCoerce, isUndefined, isUndefined, toString, undefined
-
Method Details
-
of
-
typeof
-
stringValue
- Specified by:
stringValuein classJSValue
-
asByte
-
asShort
-
asChar
-
asInt
-
asFloat
-
asLong
-
asDouble
-
asBigInteger
- Overrides:
asBigIntegerin classJSValue
-
equals
-
hashCode
-
isFinite
-
isFinite
public static boolean isFinite(double number) -
isInteger
-
isInteger
public static boolean isInteger(double number) -
isNaN
-
isNaN
public static boolean isNaN(double number) -
isSafeInteger
-
isSafeInteger
public static boolean isSafeInteger(double number) -
parseFloat
-
parseInt
-
parseInt
-
epsilon
public static double epsilon() -
maxSafeInteger
public static long maxSafeInteger() -
maxValue
public static double maxValue() -
minSafeInteger
public static long minSafeInteger() -
minValue
public static double minValue() -
nan
public static double nan() -
negativeInfinity
public static double negativeInfinity() -
positiveInfinity
public static double positiveInfinity() -
toExponential
-
toExponential
-
toFixed
-
toFixed
-
toLocaleString
-
toLocaleString
-
toLocaleString
-
toPrecision
-
toPrecision
-
toString
-
valueOf
public double valueOf()
-