$Float: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
m (Mlarocca moved page $FLOAT to $Float: Lower case change)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<p>The $FLOAT function assigns a 4-byte floating point number to a 4-byte string, without any conversion. This function is intended for use in writing a floating point value to a USE data set. The $FLOAT function takes one argument containing a numeric value. If the argument is omitted, a value of 0 is returned. </p>
<p>
<p><var class="product">Model&nbsp;204</var> maintains 15 significant decimal digits of precision for 8-byte floating-point numbers and 6 significant digits of precision for 4-byte floating-point numbers. For an expanded discussion of rounding numbers, please refer to the section [[Floating Point Conversion, Rounding, and Precision Rules#Mapping and precision adjustment|Mapping and precision adjustment]]. </p>
The $FLOAT function assigns a 4-byte floating point number to a 4-byte string, without any conversion. This function is intended for use in writing a floating point value to a USE data set. The $FLOAT function takes one argument containing a numeric value. If the argument is omitted, a value of 0 is returned. </p>
<p class="note"><b>Note:</b> Rocket Software does not recommend using $FLOAT in new applications, although this function is supported for compatibility reasons.</p>
<p>
<var class="product">Model&nbsp;204</var> maintains 15 significant decimal digits of precision for 8-byte floating-point numbers and 6 significant digits of precision for 4-byte floating-point numbers. For an expanded discussion of rounding numbers, please refer to the section [[Floating point conversion, rounding, and precision rules#Mapping and precision adjustment|Mapping and precision adjustment]]. </p>
 
<p class="note"><b>Note:</b> Technical Support does not recommend using $FLOAT in new applications, although this function is supported for compatibility reasons.</p>
 
[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

Latest revision as of 17:44, 21 July 2014

The $FLOAT function assigns a 4-byte floating point number to a 4-byte string, without any conversion. This function is intended for use in writing a floating point value to a USE data set. The $FLOAT function takes one argument containing a numeric value. If the argument is omitted, a value of 0 is returned.

Model 204 maintains 15 significant decimal digits of precision for 8-byte floating-point numbers and 6 significant digits of precision for 4-byte floating-point numbers. For an expanded discussion of rounding numbers, please refer to the section Mapping and precision adjustment.

Note: Technical Support does not recommend using $FLOAT in new applications, although this function is supported for compatibility reasons.