Please enable JavaScript to view this site.

Function used to manipulate a real value, still returning a real value, but modified so that it is in the field of valid values for a unit of type 8-bit unsigned int (equivalent to assigning an unsigned int 8 the incoming data and then copying this data into another real variable).

Syntax

real r2m8 (real value)

value

Is a generic expression of type real that gives the function the data to manipulate

result

Returns the converted value

Validity

Rule, Task

Note


The rules for converting data from real to unsigned 8 result in the following table:

Incoming value

Returned value

0

0

17

17

255

255

256

0

257

1

258

2

-1

255

-17

239

-255

1

-256

0

-257

255

-258

254

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC