Function __global->number_format

Definitions

sources_custom/phpstub.php

  • Format a number with grouped thousands.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$number mixed required parameter N/A N/A The number to format [integer or float] (technically always float because it could be larger than an integer, but that's ugly)
$decimals integer 0 N/A N/A The number of decimal fraction digits to show
$dec_point string . N/A N/A The string to use as a decimal point
$thousands_sep string , N/A N/A The string to separate groups of 1000's with

Return

  • The string formatted number
  • Type: string
  • Set: N/A
  • Range: N/A