$INTB string function $INTB string function Syntax $INTB (value) Function Return a 2-byte string containing the binary representation of a 16-bit integer. Parameter value Real-valued expression, the value of which is converted to its binary representation. Details The integer part of a real value is converted into its binary representation and the low 16 bits of that binary representation are packed into a string as two 8-bit characters. Bits 9-16 are packed first, followed by bits 1-8. This function is equivalent to:
$CHR(INT(value/256) BAND ^HFF) + $CHR(INT(value) BAND ^HFF) The main use of this function is to convert integers to binary representation within an output record of a data file. Example $INTB(65*256+67) ;Returns the character string "AC". Related Keywords $CHR string function $DBLB string function $FLTB string function INTB real-valued function $LNGB string function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 301