Function __global->integer_format
Definitions
sources/global3.php
- Format the given integer number as a nicely formatted string (using the locale).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $val | integer | No | No | required parameter | N/A | N/A | The value to format |
| $dps | ?integer | No | No | Null | N/A | N/A | Number of decimal points to show when simplifying down (null: show the full number) |
Returns
- Nicely formatted string
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Format the given integer number as a nicely formatted string (using the locale).
*
* @param integer $val The value to format
* @param ?integer $dps Number of decimal points to show when simplifying down (null: show the full number)
* @return string Nicely formatted string
*/
function integer_format(int $val, ?int $dps = null) : string
* Format the given integer number as a nicely formatted string (using the locale).
*
* @param integer $val The value to format
* @param ?integer $dps Number of decimal points to show when simplifying down (null: show the full number)
* @return string Nicely formatted string
*/
function integer_format(int $val, ?int $dps = null) : string

