The format used to display monetary amounts can be changed if required. This means you can express monetary amounts in forms more suitable to your business or requirements. For example, the amount $-3.56 (negative amount), might be displayed as
The features described on this page require POS V2.4.4.32 and the setting PriceFormatType to be set to 1. This format will be made the default at a future date.
Prices are formatted by following a series of rules, which define how they are to be displayed. These rules are written using a series of codes, which are explained below. Since you may wish to provide a different format depending on the amount of the price, you can optionally specify formats for the following:
A complete price format, consists of a number of price format rules to represent how a price is to be formatted.
| Format Rule | Description |
| pos(format-code) | Sets the format codes to be used for positive amounts. This format is also used as a the default for negative numbers and zeros if no format is explicitly loaded for them |
| neg(format-code) | Sets the format codes to be used for negative amounts. |
| zero(format-code) | Sets the format codes to be used for exact zero amounts. |
| equal(amount,format-code) | Sets the format code to be used if the amount is exactly equal to a specified amount. |
| Format Code | Description |
| # | Digit placeholder. Insert a digit. |
| 0 (zero) | Digit placeholder. Insert a digit. |
| . (dot) or d | Insert the character used to separate units and fractions in monetary amounts. In most western countries, this is the period or dot, but some countries use the comma. The character to use is selected from the current regional settings under Windows. |
| D | Insert nothing as a decimal separator, but continue processing as if the 'd' code had been used. For example the amount 2.34 formatted using #D00 will appear as 234, whereas formatting using #d00 will result in 2.34 This code should only be used on direct output commands and should not used as a default format, as amounts cannot be reverse translated. |
| "text" | Insert whatever text is between the quotation marks without further translation. To insert a quotation mark, use lit(") |
| lit(text) | Insert whatever text is between the brackets without further translation. |
A price format rule of
pos(#.00) neg(#.00 "CR") zero("Zero") equal(1000.00,"A grand")
results in the following formatting options occurring.
| Amount | Result | Amount | Result | |
| 35.60 | 35.60 | -35.60 | 35.60 CR | |
| 0.00 | Zero | -3283.00 | 3283.00 CR | |
| 1000.00 | A grand | -1000.00 | 1000.00 CR | |