Skip to main content

system.kanoa.utilities.formatNumber

This function requires KanoaCore module

Description

Given a number or string representation of a number, this function will return the number formatted to the passed-in format (kanoaCore).

Syntax

formatNumber(format, value)
  • Parameters
      format (String) - Format string (e.g., '#,###.0').
      value (Number) - The number to be formatted.
  • Returns
      String - The formatted number.
  • Code Example

    # Example Usage:
    formatted_number = system.kanoa.utilities.formatNumber('#,###.0', 12345.678)