ProtectedconstructorCreates a new instance of this class to represent the value
built multiplying sign for the absolute value expressed by the hexadecimal digits.
The sign of the value.
The digits of the absolute value in hexadecimal base.
Optionalnormalize: ((digits: string) => string) = ...The function used to normalize the digits. Defaults to converting digits to lowercase.
ReadonlydigitsReturns the hexadecimal digits expressing this absolute value, sign and 0x prefix omitted.
ReadonlysignProtected Static ReadonlyNEGATIVENegative multiplier of the digits absolute value.
Protected Static ReadonlyPOSITIVEPositive multiplier of the digits absolute value.
Static ReadonlyPREFIXA constant string prefix used in hexadecimal notation.
Static ReadonlyRADIXThe radix used for representing numbers base 16 in a positional numeral notation system.
Protected Static ReadonlyREGEX_Regular expression pattern to match a prefix indicating hexadecimal number.
Returns the value of bi as a BigInt type.
The value of bi as a BigInt.
Returns the Uint8Array representation of the aligned bytes.
The Uint8Array representation of the aligned bytes.
Returns the value of n.
The value of n.
Throws an error if this instance doesn't represent an IEEE 754 double precision 64 bits floating point format.
Compares the current Hex object with another Hex object.
The Hex object to compare with.
Determines whether this Hex instance is equal to the given Hex instance.
The Hex instance to compare with.
Checks if this instance expresses a valid Number value according the IEEE 754 double precision 64 bits floating point format.
Returns true if this instance expresses 32 hex digits (16 bytes, 128 bits) needed to represent a Number value, else it returns false.
StaticisStaticisStaticofCreate a Hex instance from a bigint, number, string, or Uint8Array.
The value to represent in a Hex instance:
0x;Staticrandom
Represents a hexadecimal value expressed as
-sign if the value is negative,0xhexadecimal notation tag,0to9and fromatof.Description
This hexadecimal notation is coherent with the decimal notation:
0xtags the string as a hexadecimal expression,Implements