@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Number")
public class JsNumber
extends JsObject
| Modifier and Type | Field and Description |
|---|---|
static double |
EPSILON
The Number.EPSILON property represents the difference between 1 and the smallest floating point number greater than 1.
|
static double |
MAX_SAFE_INTEGER
The Number.MAX_SAFE_INTEGER constant represents the maximum safe integer in JavaScript (2^53 - 1).
|
static double |
MAX_VALUE
The Number.MAX_VALUE property represents the maximum numeric value representable in JavaScript.
|
static double |
MIN_SAFE_INTEGER
The Number.MIN_SAFE_INTEGER constant represents the minimum safe integer in JavaScript (-(2^53 - 1)).
|
static double |
MIN_VALUE
The Number.MIN_VALUE property represents the smallest positive numeric value representable in JavaScript.
|
static double |
NaN
The Number.NaN property represents Not-A-Number.
|
static double |
NEGATIVE_INFINITY
The Number.NEGATIVE_INFINITY property represents the negative Infinity value.
|
static double |
POSITIVE_INFINITY
The Number.POSITIVE_INFINITY property represents the positive Infinity value.
|
| Constructor and Description |
|---|
JsNumber()
The Number() constructor creates a Number object.
|
JsNumber(double value)
The Number() constructor creates a Number object.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isFinite(double value)
The Number.isFinite() method determines whether the passed value is a finite number — that is, it checks that the type of a given value is Number, and the number is neither positive Infinity, negative Infinity, nor NaN.
|
static boolean |
isInteger(double value)
The Number.isInteger() method determines whether the passed value is an integer.
|
static boolean |
isNaN(double value)
The Number.isNaN() method determines whether the passed value is NaN and its type is Number.
|
static boolean |
isSafeInteger(double value)
The Number.isSafeInteger() method determines whether the provided value is a number that is a safe integer.
|
static double |
parseFloat(java.lang.String string)
The Number.parseFloat() method parses an argument and returns a floating point number.
|
static int |
parseInt(java.lang.String string,
int radix)
The Number.parseInt() method parses a string argument and returns an integer of the specified radix or base.
|
java.lang.String |
toExponential()
The toExponential() method returns a string representing the Number object in exponential notation.
|
java.lang.String |
toExponential(int fractionDigits)
The toExponential() method returns a string representing the Number object in exponential notation.
|
java.lang.String |
toFixed()
The toFixed() method formats a number using fixed-point notation.
|
java.lang.String |
toFixed(int digits)
The toFixed() method formats a number using fixed-point notation.
|
java.lang.String |
toPrecision()
The toPrecision() method returns a string representing the Number object to the specified precision.
|
java.lang.String |
toPrecision(int precision)
The toPrecision() method returns a string representing the Number object to the specified precision.
|
java.lang.String |
toString_()
The toString() method returns a string representing the specified Number object.
|
java.lang.String |
toString_(int radix)
The toString() method returns a string representing the specified Number object.
|
double |
valueOf()
The valueOf() method returns the wrapped primitive value of a Number object.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, valueOf_, values@JsOverlay public static final double EPSILON
@JsOverlay public static final double MAX_SAFE_INTEGER
@JsOverlay public static final double MAX_VALUE
@JsOverlay public static final double MIN_SAFE_INTEGER
@JsOverlay public static final double MIN_VALUE
@JsOverlay public static final double NEGATIVE_INFINITY
@JsOverlay public static final double NaN
@JsOverlay public static final double POSITIVE_INFINITY
public JsNumber(double value)
public JsNumber()
public static boolean isFinite(double value)
public static boolean isInteger(double value)
public static boolean isNaN(double value)
public static boolean isSafeInteger(double value)
public static double parseFloat(@Nonnull
java.lang.String string)
public static int parseInt(@Nonnull
java.lang.String string,
int radix)
@Nonnull public java.lang.String toExponential(int fractionDigits)
@Nonnull public java.lang.String toExponential()
@Nonnull public java.lang.String toFixed(int digits)
@Nonnull public java.lang.String toFixed()
@Nonnull public java.lang.String toPrecision(int precision)
@Nonnull public java.lang.String toPrecision()
@JsMethod(name="toString") @Nonnull public java.lang.String toString_(int radix)
@JsMethod(name="toString") @Nonnull public java.lang.String toString_()
toString_ in class JsObjectpublic double valueOf()