Changing the currency format
Complete the following steps to customize currency information to change the display format.
About this task
Procedure
-
Select one of the following tasks:
-
Change the rounding multiple
The rounding multiple is used by the WebSphere Commerce Servers to round monetary amounts before storing them in the database. Normally this value is 1, to round to the nearest currency sub-unit. If you change it to 5, rounding will be done to the nearest multiple of 5 sub-units (for example, to the nearest nickel).
-
Change the rounding method
The default method is rounding. Alternatively, you can use truncation.
-
Change the currency symbol
The currency symbol is the string in the CURRENCYSYMBOL column of the CURFMTDESC table.
-
Add a customized currency code
The customized currency code is the string in the CUSTOMIZEDCURRSTR column of the CURFMTDESC table.
-
Change the currency prefix or change the currency suffix
The currency prefix and currency suffix are the strings in the CURRENCYPREFIX and CURRENCYPOSTFIX columns of the CURFMTDESC table.
-
Change number of decimal places
Decimal places in currency amounts are determined by the DECIMALPLACES column in the CURFORMAT table.
- Change the number pattern used to format currencies in JSP files In JSP files, decimal places in currency amounts are determined by the NUMBERPATTERN column in the CURFMTDESC table.
-
Define new number usages
The formatting rules for number usage can be changed using the NUMBRUSG table. The NUMBRUSG table defines the number usages that can be used for defining formatting rules.
-
Change the rounding multiple
- Refresh the Currency Manager registry using the Registry window of the Administration Console.
- Manually remove pages showing the currency from the cache.