MACROMEDIA COLFUSION MX 7-MIGRATING APPLICATIONS TO COLDFUSION MX 7 Manual page 14

Migrating applications to coldfusion mx 7
Table of Contents

Advertisement

Changes to formatting functions
The following table outlines changes to formatting functions. For more information, see CFML
Reference for the appropriate function.
Function
LSEuroCurrencyFormat In ColdFusion 5, the LSEuroCurrencyFormat function used EUR or the
LSCurrencyFormat
14
Chapter 1: Migrating Applications from ColdFusion 5
Description of change
euro symbol (€) for every locale, even if the locale did not support the euro.
For example,
LSEuroCurrencyFormat(123.45, "international")
"EUR123.45", even for an English (US) locale.
In ColdFusion MX,
LSEuroCurrencyFormat
format if the set locale is a Euro member country . Otherwise, it returns the
set locale's currency format or symbol. For example,
LSEuroCurrencyFormat(-1234.56)
(Standard) locale, but returns ($1,234.56) for the English (US) locale.
In ColdFusion 5 this function had numerous errors where it used the
wrong international currency designator. For example, in an English
(Australian) locale,
LSCurrencyFormat(123456.78,"international")
returned USD123,456.78. This problem has been corrected, and this
example now returns AUD.
The format returned for negative currency values has also been corrected
to use JVM format for the locale. For example, in the Australian(English)
locale,
LSCurrencyFormat(-123456.78, "local")
-$123,456.78 instead of ($123,456.78).
In ColdFusion 5, the LSCurrencyFormat tag used the pre-euro currency
identifiers for all countries in the Euro zone.
ColdFusion MX uses the Java standard locales, and its behavior depends
upon the JVM version.
If you have a 1.4 level JVM, including the JVM that is included in the
ColdFusion MX 6.1 server configuration,
euro currency format for all locales in the Euro Zone. If you have a 1. 3 level
JVM ,
LSCurrencyFormat
locales, even if the locale is a member of the Euro countries.
returns the euro currency
returns -1 234,56 € for the French
LSCurrencyFormat
returns the non-euro currency format for all
returned
now returns
returns the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents