V+ Language Reference Guide, v
$DBLB string function
Syntax
$DBLB (value)
Function
Return an 8-byte string containing the binary representation of a real value in double-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 double-precision standard floating-point format. This 64-bit value is packed as eight successive 8-bit characters in a string. See the DBLB real-valued function for a more detailed description of IEEE floating-point format.
The main use of this function is to convert a double-precision real value to its binary representation in an output record of a data file.
Example
$DBLB(1.215)Returns a character string equivalent to:
$CHR(^H3F)+$CHR(^H3F)+$CHR(^H70)+ $CHR(^HA3)+$CHR(^HD7)+$CHR(^H0A)+$CHR(^H3D)+$CHR(^H71)Related Keywords
$CHR string function
DOUBLE (type keyword for AUTO, GLOBAL, and LOCAL)
$FLTB string function
FLTB real-valued function
$INTB string function
$TRANSB string function
Submit comments to: techpubs@adept.com
Last modified on: 3/27/2012
Copyright © 1994 - 2012. Adept Technology, Inc.
