$Float: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo 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> | ||
<p><var class="product">Model 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 | 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 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> | <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 20:28, 2 January 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.