www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Format.formatCurrency(amount, options)

Mojo.Format.formatCurrency(amount, options)

Formats the provided number as a locale-based currency string.  Returns String.

Parameter Type Description
amount Number Number to be formatted as currency.
options Number|Object

Number: Number of decimal places to include in the returned string.

Object: Additional formatting options.  See below.

options object properties:

Property Type Description
fractionDigits Number Number of places to include in the returned string.
countryCode String Two letter IETF/ISO 639 code for a country/region.  Optional.  Defaults to current device locale.
 

0 Comments

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)