Convert datatype

Hey,

Is there any way to convert datatype UInt8 to UInt16?

as a uint8 fits inside a uint16, the question is why?

  • uint8 1 == uint16 1
  • uint8 2 == uint16 2
    ...
  • uint8 255 == uint16 255

PS, there is no concept of uint8 in JavaScript. there is only number (and BigInt)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.