-
Notifications
You must be signed in to change notification settings - Fork 29
__PCT
kerrishotts edited this page Nov 13, 2012
·
1 revision
(part of PKLOC)
Return Type: string
Parameters: theNumber [, theFormat [, theLocale ] ]
Localizes a number according the user's current locale (or the given locale) as a percentage based on the format specified. The format is based on the format rules specified here, except that this method automatically adds the "p". Therefore a format of "2" will automatically become "p2".
For example:
__PCT( .0123 ) ==> 1.23 %
__PCT( .0123, "0" ) ==> 1 %
__PCT( .0123, "1","en-US" ) ==> 1.2 %
The initializeGlobalization method must have been called prior to using this method, and the appropriate localization files need to have been loaded with loadLocales.
0.1 Introduced
0.2 Docs Valid