BYTE Function

Converts an expression to byte data type.
Extracts data from an expression and places it in a byte scalar or array.

Usage



Input Parameters

Returned Value

Keywords

Discussion


TIP: Use BYTSCL to convert expr to byte data type using scaling rather than modulo.

CAUTION: If the values of expr are within the range of a long integer, but outside the range of the byte data type (0 to +255), a misleading result occurs without an accompanying message. For example, BYTE(256)erroneously results in 0. If the values of expr are outside the range of a long integer data type, an error message may be displayed.

Example 1

Example 2

Example 3


See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.