Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : GENFLOAT

GENFLOAT
Returns a syntax V string containing the same internal float representation as the input float value, left-justified. (F)
Invocation
string = GENFLOAT(value, length)
 
Usage
Example
The following rule uses GENFLOAT to create a buffer containing float values.

 
RULE EDITOR ===> SCROLL: P
A1(V,L);
_ LOCAL STR;
_ -------------------------------------------------------------------------------
_ ----------------------------------------------------------------+--------------
_ STR = GENFLOAT(V,L); | 1
_ CALL ENDMSG(STR || '; LENGTH OF STRING=' || LENGTH(STR)); | 2
_ -------------------------------------------------------------------------------

 
A1(1.23456789e2,8) results in an 8-byte STR buffer containing internal floating point representation for 123.456789.
A1(0,16) results in a 16-byte STR buffer of 0 (that displays as blanks).

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved