V+ Language Reference Guide, v
$FLTB string function
Syntax
$FLTB (value)
Function
Return a 4-byte string containing the binary representation of a real value in single-precision IEEE floating-point format.
Parameter
value Real-valued expression, the value of which is converted to its IEEE floating-point binary representation. Details
A real value is converted to its binary representation using the IEEE single-precision standard floating-point format. This 32-bit value is packed as four successive 8-bit characters in a string. See the FLTB real-valued function for a more detailed description of IEEE floating-point format.
The main use of this function is to convert a real value to its binary representation in an output record of a data file.
Example
$FLTB(1.215) ;Returns a character string equivalent to: $CHR(^H3F)+$CHR(^H9B)+$CHR(^H85)+$CHR(^H1F)Related Keywords
$CHR string function
DBLB real-valued function
$DBLB string function
FLTB real-valued function
$INTB string function
LNGB real-valued function
$LNGB string function
$TRANSB string function
Submit comments to: techpubs@adept.com
Last modified on: 3/27/2012
Copyright © 1994 - 2012. Adept Technology, Inc.
