$Float: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
No edit summary
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>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><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><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> Rocket Software does not recommend using $FLOAT in new applications, although this function is supported for compatibility reasons.</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]]

Revision as of 19:22, 13 August 2013

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.