UtilsLib Xojo plugin

CurrencyFormatter Class (console safe)

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

Object
   CurrencyFormatter

class CurrencyFormatter

Methods

CurrencyCode (console safe) Returns a three letter string of the international monetary symbol specified in ISO 4217.
CurrencySymbol (console safe) To get the default currency symbol that is selected in the system then use the CurrencySymbol function.
DecimalPoint (console safe) To get the default decimal point symbol for currency that is selected in the system then use the DecimalPoint function.
Format (console safe) Formats a double number to string as currency taking into account locale settings. This variation uses locale settings.
Format (console safe) Formats a double number to string as currency taking into account locale settings. This variation takes custom format masks.
NegativeCurrencyFormat (console safe) Returns a format mask for negative currency format.
NegativeCurrencySymbolLeads (console safe) Returns true if the currency symbol should come before the number on negative numbers.
NegativeSign (console safe) Returns the negative sign for currency format.
PositiveCurrencyFormat (console safe) Returns a format mask for positive currency format.
PositiveCurrencySymbolLeads (console safe) Returns true if the currency symbol should come before the number on positive numbers.
PositiveSign (console safe) Returns the positive sign for currency format.
ThousandsSeparator (console safe) To get the default thousands separator symbol for currency that is selected in the system then use the ThousandsSeparator function.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM