2.5.10. parseInt()

string parseInt ( number num )

Formats the number to a human-readable form by adding separating characters between groups of digits. By default, it formats the numbers using English-language settings, but they can be changed in OPT configuration with these directives:

  1. parseIntDecimals - how many decimals after dot we want to present.
  2. parseIntDecPoint - separator between fractions and integer parts.
  3. parseIntThousands - separator between each group of thousands.

Example 2.17. parseInt() function

<p>{parse_int(3483745.3490)}</p>
{* will display: 3,483,745.349 *}