www.webOShelp.net

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

Home Resources API Reference Mojo.Format.formatPercent(percent, options)

Mojo.Format.formatPercent(percent, options)

Formats a number into a percent string using a locale-based format. Returns String.

Parameter Type Description
percent Number Percent number to be formatted.  Will not be multiplied by 100.
options Object See below.

options object properties:

Properties Type Description
countryCode String Two letter IETF/ISO 639 code for country/region.  Optional.  Defaults to device's current locale.
 

0 Comments

    Add Comment


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