V+ Language Reference Guide


TRANSB transformation function

Syntax

TRANSB (string, first_char)

Function

Return a transformation value represented by a 48-byte string.

Parameters

string String expression that contains the 48 bytes to be converted.
first_char

Optional real-valued expression that specifies the position of the first of the 48 bytes in the string.

If first_char is omitted or has a value of 0 or 1, the first 48 bytes of the string are extracted. If first_char is greater than 1, it is interpreted as the character position for the first byte. For example, a value of 2 means that the second through 49th bytes are extracted. An error is generated if first_char specifies 48 bytes that are beyond the end of the input string.

Details

Forty-eight sequential bytes of the given string are interpreted as being a set of twelve single-precision (32-bit) floating-point numbers in the IEEE standard format. (See the description of the FLTB function for details of the floating-point format.) The twelve values are interpreted as the components of a 3-by-4 transformation matrix, stored by column.

The main use of this function is to convert the binary representation of a transformation value from an input data record to values that can be used internally by V+.

Related Keywords

FLTB real-valued function

TRANS transformation function

$TRANSB string function


Submit comments to: techpubs@adept.com
Last modified on: 8/17/2010
Copyright © 1994 - 2010. Adept Technology, Inc.