byte

Convert to an unsigned byteacter value or create an unsigned byteacter variable.

Syntax

result = byte ( value ) ;

byte variable [= value] ;

Arguments

list value

Return Value

byte result

Exceptions

%ARGUMENT : Invalid arguments. Usage: byte variable [= value] ;

%IDENTIFIER : 'variable' argument is not a valid identifier, literal, or reference

Description

byte -128 to +127

ubyte 0 to 255

A byte and ubyte formats are a one-byte signed and unsigned integer, respectively. The values range from0x00 through 0xff, which in the signed byte case is between -128 and +127, and between 0 and 255 for the unsigned byte.

Examples

To execute the example below, press or modify the example to try different variations.

Related Links

ubyte