Skip to content
bergsma edited this page Sep 26, 2014 · 5 revisions

#ubyte

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

Syntax

result = ubyte value ;
ubyte variable [= value] ; 

Arguments

  1. list value

A value of any type.

Return Value

ubyte result
  • ubyteacter : An unsigned 8 bit ascii value.

The STATUS variable is set to $ACKNOWLEDGE

When the argument is an array variable, all the elements in the array are converted, and the result will be a vector array ubyte result

  • ubyteacter : An unsigned 8 bit ascii value.

The STATUS variable is set to $ACKNOWLEDGE

When the argument is an array variable, all the elements in the array are converted, and the result will be a vector array

Exceptions

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

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

Description

  • None

Examples

put ubyte ( -1 ) ; //== 255
put ubyte ( -2 ) ; //== 254
put ubyte ( 255 ) ; //== 255
put ubyte ( 256 ) ; //== 0
put ubyte ( 257 ) ; //== 1

Related Links

byte

Clone this wiki locally