User Guide
14 Chapter 1: Migrating Applications from ColdFusion 5
Changes to formatting functions
The following table outlines changes to formatting functions. For more information, see CFML
Reference for the appropriate function.
Function Description of change
LSEuroCurrencyFormat In ColdFusion 5, the LSEuroCurrencyFormat function used EUR or the
euro symbol (€) for every locale, even if the locale did not support the euro.
For example,
LSEuroCurrencyFormat(123.45, "international") returned
"EUR123.45", even for an English (US) locale.
In ColdFusion MX,
LSEuroCurrencyFormat returns the euro currency
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) returns -1 234,56 € for the French
(Standard) locale, but returns ($1,234.56) for the English (US) locale.
LSCurrencyFormat 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") now returns
-$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,
LSCurrencyFormat returns the
euro currency format for all locales in the Euro Zone. If you have a 1. 3 level
JVM ,
LSCurrencyFormat returns the non-euro currency format for all
locales, even if the locale is a member of the Euro countries.