Skip to main content

Overview

This function formats a number according to a given style.

Parameters

formatNumber(number)
  • Variable: The number to format.

Example

formatNumber(1234.56)
Returns "1,234.56" (formatted with commas and proper decimal places).
I