int8()

Takes a number and converts it to a twos-complement 8-bit signed integer.

This function is valid in v2.13.0 to v2.24.3. This function has been downloaded 61 times.

Parameter

{number} number
Number to be converted to a twos-complement 8-bit signed integer.

Returns

{number}
Returns the specified number as a twos-complement 8-bit signed integer.

Required Functions

This function directly requires the following functions which are included automatically:

  • int16()
    Takes a number and converts it to a twos-complement 16-bit signed integer.
  • int32()
    Takes a number and converts it to a twos-complement 32-bit signed integer.
  • uint16()
    Takes a number and converts it to a 16-bit unsigned integer.
  • uint32()
    Takes a number and converts it to a 32-bit unsigned integer.
  • uint8()
    Takes a number and converts it to a 8-bit unsigned integer.

Requiring Functions

This function is directly required by the following functions:

  • int16()
    Takes a number and converts it to a twos-complement 16-bit signed integer.
  • int32()
    Takes a number and converts it to a twos-complement 32-bit signed integer.
  • uint16()
    Takes a number and converts it to a 16-bit unsigned integer.
  • uint32()
    Takes a number and converts it to a 32-bit unsigned integer.
  • uint8()
    Takes a number and converts it to a 8-bit unsigned integer.