Skip to main content

toTwosComplement

Callable

  • toTwosComplement(value: Numbers, nibbleWidth?: number): string

  • Converts a negative number into the two’s complement and return a hexstring of 64 nibbles.


    Parameters

    • value: Numbers
    • nibbleWidth: number = 64

    Returns string