Difference between revisions of "SET CURRENCY"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET CURRENCY=
 
 
 
==Class==
 
Numeric Data
 
 
 
 
==Purpose==
 
==Purpose==
 
Define the currency symbol associated with the CURRENCY() function
 
Define the currency symbol associated with the CURRENCY() function
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
CURRENCY()
+
[[CURRENCY()]], [[SET LANGUAGE]]
  
  
Line 25: Line 18:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set currency to ’£’
 
set currency to ’£’
 
? currency(5000.00)
 
? currency(5000.00)
£5000.00</pre>
+
£5,000.00</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Set_Commands]]
+
[[Category:Set_Commands|CURRENCY]]
 +
[[Category:Numeric Data]]
 +
[[Category:Numeric Data Set Commands]]

Latest revision as of 15:31, 23 November 2009

Purpose

Define the currency symbol associated with the CURRENCY() function


Syntax

SET CURRENCY TO <expC>


See Also

CURRENCY(), SET LANGUAGE


Description

The SET CURRENCY TO command allows you to define the currency symbol associated with the CURRENCY() function or the ’$’ picture symbol, as specified by the character expression <expC>. This expression has a length of one character. By default, CURRENCY is $.

NOTE: The SET LANGUAGE command may be required to obtain the ’£’ character. See the SET LANGUAGE command for further details.


Example

set currency to ’£’
? currency(5000.00)
 £5,000.00


Products

Recital Server, Recital