import { Integer } from "https://deno.land/x/neo4j_lite_client@4.4.6/mod.ts";
Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as signed integers.
See exported functions for more convenient ways of operating integers.
Use int()
function to create new integers, isInt()
to check if given object is integer,
inSafeRange()
to check if it is safe to convert given value to native number,
toNumber()
and toString()
to convert given integer to number or string respectively.
Methods
Gets the number of bits needed to represent the absolute value of this Integer.
Tests if this Integer's value is greater than the specified's.
Tests if this Integer's value is greater than or equal the specified's.
Tests if this Integer's value is less than or equal the specified's.
Returns this Integer with bits arithmetically shifted to the right by the given amount.
Converts the Integer to a the nearest floating-point representation of this value (double, 53 bit mantissa).
Converts the Integer to native number or -Infinity/+Infinity when it does not fit.
Static Methods
Returns a Integer representing the 64 bit integer that comes by concatenating the given low and high bits. Each is assumed to use 32 bits.
Returns a Integer representing the given value, provided that it is a finite number. Otherwise, zero is returned.
Returns a Integer representation of the given string, written using the specified radix.
Checks if the given value is in the safe range in order to be converted to a native number