toUint8 (Function)

Signature: toUint8(value: t0) -> uint8

Description: Converts any integer type to uint8. A value outside 0..255 performs Arith.overflow with the source as its operand.

Parameters

  • value (t0): The integer to convert

Returns: uint8

Example

print(toUint8(200))  // 200
print (toUint8 200)  // 200