www.webOShelp.net

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

Home Resources API Reference Mojo.Format.formatNumber(number, options)

Mojo.Format.formatNumber(number, options)

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

Parameter Type Description
Number Number Number to format
options Number|Object

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

Object: See below.

options object properties:

Properties Type Description
fractionDigits Number The number of decimal places to include in the returned string.
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-)
      • ;-)