intFormat

converts a number into integer and formats according to the locale defaults.

string intFormat(number num);

Parameters

numnumberthe number to format

Returns

stringthe formatted number as a string
Details

The method takes values of the following attributes from the locale in use:

  • groupSize - the number of digits in a group.
  • groupDelimiter - a char which separates groups of digits.
Back to top