Description
Returns a formatted number to show in the screen.
To format the number th function uses the Decimal point separator and the Thousands separator settings.
Usage
<?php echo tcp_number_format( $number, $decimals ); ?>
Parameters
- $number
- (Float)(required) The number to format.
- $decimals
- (int)(optional) The number of decimals numbers, 2 by default.
Examples
Change Log
Since: 1.0.8
New parameter: $decimals.
Since: 1.0.7