The float value.
Optional
name: null | stringThe name of the tag, defaults to null.
The name of the nbt tag.
Readonly
typeThe nbt tag type of the data type.
Static
Readonly
EPSILONThe value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 that is representable as a Number value, which is approximately: 2.2204460492503130808472633361816 x 10−16.
Static
Readonly
MAX_The value of the largest integer n such that n and n + 1 are both exactly representable as a Number value. The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
Static
Readonly
MAX_The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308.
Static
Readonly
MIN_The value of the smallest integer n such that n and n − 1 are both exactly representable as a Number value. The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
Static
Readonly
MIN_The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324.
Static
Readonly
NaNA value that is not a number. In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
Static
Readonly
NEGATIVE_A value that is less than the largest negative number that can be represented in JavaScript. JavaScript displays NEGATIVE_INFINITY values as -infinity.
Static
Readonly
POSITIVE_A value greater than the largest number that can be represented in JavaScript. JavaScript displays POSITIVE_INFINITY values as infinity.
Returns a string containing a number represented in exponential notation.
Optional
fractionDigits: numberNumber of digits after the decimal point. Must be in the range 0 - 20, inclusive.
Returns a string representing a number in fixed-point notation.
Optional
fractionDigits: numberNumber of digits after the decimal point. Must be in the range 0 - 20, inclusive.
Convert the tag to a JSON object.
Converts a number to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: NumberFormatOptionsAn object that contains one or more properties that specify comparison options.
Converts a number to a string by using the current or specified locale.
Optional
locales: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: NumberFormatOptionsAn object that contains one or more properties that specify comparison options.
Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
Optional
precision: numberNumber of significant digits. Must be in the range 1 - 21, inclusive.
Returns a string representation of an object.
Optional
radix: numberSpecifies a radix for converting numeric values to strings. This value is only used for numbers.
Returns the primitive value of the specified object.
Static
isReturns true if passed value is finite. Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a number. Only finite values of the type number, result in true.
A numeric value.
Static
isReturns true if the value passed is an integer, false otherwise.
A numeric value.
Static
isReturns a Boolean value that indicates whether a value is the reserved value NaN (not a number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter to a number. Only values of the type number, that are also NaN, result in true.
A numeric value.
Static
isReturns true if the value passed is a safe integer.
A numeric value.
Static
parseConverts a string to a floating-point number.
A string that contains a floating-point number.
Static
parseConverts A string to an integer.
A string to convert into a number.
Optional
radix: numberA value between 2 and 36 that specifies the base of the number in string
.
If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
All other strings are considered decimal.
Static
readRead the nbt tag from the stream.
The binary stream to read from.
The options for reading the tag.
Static
writeWrite the nbt tag to the stream.
The binary stream to write to.
The value of the tag to write.
The options for writing the tag.
Create a new FloatTag instance.