Difference between revisions of "SET FIXED"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
=SET FIXED=
 
 
 
 
==Class==
 
==Class==
 
Numeric Data
 
Numeric Data
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[SET DECIMALS]], [[ROUND()]]
+
[[ROUND()]], [[SET DECIMALS]]
  
  
Line 23: Line 20:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
? 285.129 * 4.6
 
? 285.129 * 4.6
 
  1311.5934
 
  1311.5934
Line 29: Line 26:
 
set fixed on
 
set fixed on
 
? 285.129 * 4.6
 
? 285.129 * 4.6
   1311.593</pre>
+
   1311.593</code>
  
  

Revision as of 09:13, 16 April 2009

Class

Numeric Data


Purpose

Determines whether a fixed number of decimal places are displayed for numeric output


Syntax

SET FIXED ON | OFF | (<expL>)


See Also

ROUND(), SET DECIMALS


Description

If SET FIXED is ON, then all numeric output will be displayed with the number of decimal places specified by the SET DECIMALS command. If no SET DECIMALS command has been issued, then the number of decimal places displayed will be 2. By default, FIXED is OFF.


Example

? 285.129 * 4.6
 1311.5934
set decimals to 3
set fixed on
? 285.129 * 4.6
  1311.593


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer