Module ringo/utils/numbers
Provides utility functions for working with JavaScript numbers.
format (number, fmt, locale)
Format number using java.text.DecimalFormat.
Parameters
| Number | number | the number |
| String | fmt | the format to apply |
| String | locale | optional locale |
Returns
| String | the number formatted as string |
times (num, fun)
Invoke a function num times, passing 0 .. (this - 1) as argument.
Parameters
| Number | num | the number |
| Function | fun | the function to call |