UtilsLib REALbasic Plugin

CurrencyFormatter Class

CurrencyFormatter is a class to obtain system currency settings and to format numbers correctly for those settings.

Object
   CurrencyFormatter

class CurrencyFormatter

Methods

CurrencyCodeReturns a three letter string of the international monetary symbol specified in ISO 4217.
CurrencySymbolTo get the default currency symbol that is selected in the system then use the CurrencySymbol function.
DecimalPointTo get the default decimal point symbol for currency that is selected in the system then use the DecimalPoint function.
FormatFormats a double number to string as currency taking into account locale settings. This variation uses locale settings.
FormatFormats a double number to string as currency taking into account locale settings. This variation takes custom format masks.
NegativeCurrencyFormatReturns a format mask for negative currency format.
NegativeCurrencySymbolLeadsReturns true if the currency symbol should come before the number on negative numbers.
NegativeSignReturns the negative sign for currency format.
PositiveCurrencyFormatReturns a format mask for positive currency format.
PositiveCurrencySymbolLeadsReturns true if the currency symbol should come before the number on positive numbers.
PositiveSignReturns the positive sign for currency format.
ThousandsSeparatorTo get the default thousands separator symbol for currency that is selected in the system then use the ThousandsSeparator function.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86