Difference between revisions of "CURRENCY()"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to prefix numeric value with currency character
 
Function to prefix numeric value with currency character
 
  
 
==Syntax==
 
==Syntax==
 
CURRENCY(<expN>)
 
CURRENCY(<expN>)
 
  
 
==See Also==
 
==See Also==
 
[[SET CURRENCY]]
 
[[SET CURRENCY]]
 
  
 
==Description==
 
==Description==
Line 26: Line 23:
 
     $88.00
 
     $88.00
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==

Revision as of 11:39, 11 December 2012

Purpose

Function to prefix numeric value with currency character

Syntax

CURRENCY(<expN>)

See Also

SET CURRENCY

Description

The CURRENCY() function returns the specified <expN> as a character string prefixed with the current currency character which can be set with the command SET CURRENCY TO <expC>. The default for SET CURRENCY is "$".

Note for locale specific settings:

To change the separator character from a ',' use the SET SEPARATOR TO command.

To change the point character from a '.' use the SET POINT TO command.

Example

set currency to "$"
? currency(88.00)
    $88.00

Products

Lianja Server, Lianja