Display international currency using View/Style/Currency instructions.

Screenshots

Specifics

Albert enables the chef to modify the currency displayed throughout the statement. Visual Pattern Instructions that are intended to display currency will use this currency instruction. In addition, the chef can utilize this same currency instruction using CSS classes within SetText.html instructions. If the currency instruction is not included in the visual recipe, Albert defaults all currency to USD.

Samples

Currency formatting requires 2 instructions in the Path: View/Style/Currency

  1. Set Number Decimal Formatting with View/Style/Currency/SetText.txt

    ###,###.## ¤
    
  2. Set Currency Symbol Formatting with View/Style/Currency/SetAlt.txt

  3. Format Number as currency in statement using span in any SetText.html

    <span class='visual-currency'>5494.34</span>
    

Pattern Syntax

Pattern Description
0 A digit - always displayed, even if number has less digits (then 0 is displayed)
# A digit, leading zeroes are omitted.
. Marks decimal separator
, Marks grouping separator (e.g. thousand separator)
E Marks separation of mantissa and exponent for exponential formats.
; Separates formats
- Marks the negative number prefix
% Multiplies by 100 and shows number as percentage
? Multiplies by 1000 and shows number as per mille
¤ Currency sign - replaced by the currency sign for the Locale. Also makes formatting use the monetary decimal separator instead of normal decimal separator. ¤¤ makes formatting use international monetary symbols.
X Marks a character to be used in number prefix or suffix
Marks a quote around special characters in prefix or suffix of formatted number.

Examples

Description Number Format (SetText.txt) Currency Format (SetAlt.txt) Input Number Statement Display
Standard USD Currency ¤###,###.## $ 213486.7 $213,486.70
Rounded Euro Currency ¤###,### 62912.32 €62,912
Rounded Zloty Currency ###,### ¤ 911.87 912 zł
Rounded Pound Currency (html code) ¤###,### &#163; 911.87 £912

CSS Currency Classes

CSS Class Example Statement Display Description
visual-currency <span class='visual-currency'>2061.03</span> $2,061.03 Wrapping a number in the ‘visual-currency’ class will format the number to the currency format instructions.
visual-currency-usd <span class='visual-currency-usd'>761.03</span> $761.03 A special class for USD is available for use.
visual-currency-zero <span class='visual-currency-zero'></span> €0.00 This class will ensure a number populates the statement. This is useful when the value could be null.
visual-currency-usd-zero <span class='visual-currency-zero'></span> $0.00 This class will ensure a USD number populates the statement. This is useful when the value could be null.

Suggestions and Feedback

Please send an email to michael.zaucha@brainpowersoftware.com if you have additional questions or feedback on this page.