Numeric Output - BBj
BBj-Specific Information
For this topic's original documentation, see Numeric Output.
The following additional mask characters are defined for BBj numeric masking.
Mask Character |
Description |
@ |
The @ sign is replaced by the three-character international currency code, based on the current value of STBL("!LOCALE") |
& |
The & sign is replaced by the local currency symbol, based on the current value of STBL("!LOCALE") |
Example
0010 VALUE=100,MASK1$="$##0BB",MASK2$="@##0BB",MASK3$="&##0BB"
0020 US$=STBL("!LOCALE","en_US")
0030 PRINT VALUE:MASK1$,VALUE:MASK2$,VALUE:MASK3$,STBL("!LOCALE")
0040 UK$=STBL("!LOCALE","en_GB")
0050 PRINT VALUE:MASK1$,VALUE:MASK2$,VALUE:MASK3$,STBL("!LOCALE")
0060 DE$=STBL("!LOCALE","de_DE")
0070 PRINT VALUE:MASK1$,VALUE:MASK2$,VALUE:MASK3$,STBL("!LOCALE")
0080 NL$=STBL("!LOCALE","nl_NL")
0090 PRINT VALUE:MASK1$,VALUE:MASK2$,VALUE:MASK3$,STBL("!LOCALE")
>run
$100 USD100 $100 en_US
$100 GBP100 £100 en_GB
$100 EUR100 €100 de_DE
$100 EUR100 €100 nl_NL