Skip to content

nformat

Compare
Choose a tag to compare
@bajb bajb released this 31 Jul 10:05
· 215 commits to master since this release

/**

  • Number format integers only, any other string will be returned as is
    *
  • @param mixed $number The number being formatted.
  • @param int $decimals [optional] Sets the number of decimal points.
  • @param string $decPoint [optional]
  • @param string $thousandsSep [optional]
    *
  • @return string A formatted version of number.
    */