[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+-----------------+########################################################
#+-| SET DECIMALS TO |---------------------------------------------+##########
#| +-----------------+ The SET DECIMALS TO command establishes the |##########
#| number of decimal places displayed for a |##########
#| double-precision value. |##########
#+-----------------------------------------------------------------+##########
##############################################################################
##############################################################################
#+--| Syntax |------------------------+#######################################
#| SET DECIMALS TO <Uint-exp> |#######################################
#+------------------------------------+#######################################
##############################################################################
##############################################################################
##########+---| Description |---------------------------------------+#########
##########| The range for <Uint-exp> is 0 to 15. The default value |#########
##########| is 2. The <Uint-exp> expression is only valid when |#########
##########| SET FIXED is ON, otherwise all non-zero decimal digits |#########
##########| are displayed. |#########
##########+---------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| |#########
#########| SET DECIMALS TO 5 |#########
#########| SET FIXED ON |#########
#########| ? log( 3.1415 ) * log( 3.1415 ) |#########
#########| SET DECIMALS TO 2 |#########
#########| ? log( 3.1415 ) * log( 3.1415 ) |#########
#########| |#########
#########| Output: |#########
#########| 1.31033 |#########
#########| 1.31 |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
SET FIXED
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson