Package | com.adobe.utils |
Class | public class NumberFormatter |
See also
Method | Defined by | ||
---|---|---|---|
addLeadingZero(n:Number):String
[static]
Formats a number to include a leading zero if it is a single digit
between -1 and 10.
| NumberFormatter |
addLeadingZero | () | method |
public static function addLeadingZero(n:Number):String
Formats a number to include a leading zero if it is a single digit between -1 and 10.
Parametersn:Number — The number that will be formatted
|
String — A string with single digits between -1 and 10 padded with a
leading zero.
|