new Int64()
Signed 64-bit integer. Provides a means to read integer values larger than supported natively by JavaScript.
Used as the value type of the Int64 data type:
var datatype = diffusion.datatypes.int64(); var value = new datatype.Int64("12498352809328592352350908124");
- Since:
-
- 6.0
Methods
-
toNumber()
-
Read this value as a number. The validity of the returned number can only be guaranteed for values up to
Math.pow(2, 53) - 1
due to underlying platform limitations of JavaScript.Returns:
the numerical value of this int64, as a 53-bit integer.
- Type
- Number
-
toString( [radix])
-
Read this value as a string.
Parameters:
Name Type Argument Default Description radix
Number <optional>
10 The radix to use. Defaults to base
10
.Returns:
the string representation of the int64 value.
- Type
- String