davidvandertuijn / number_format_except_zero
Number Format Except Zero
1.1
2022-03-06 22:17 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-10-29 13:24:16 UTC
README
The “Number Format Except Zero” tool is designed to enhance the presentation of numerical data by formatting values while excluding zero entries. This functionality is particularly useful for creating clean and meaningful reports, visualizations, and data analyses.
Install
composer require davidvandertuijn/number_format_except_zero
Usage
number_format_except_zero('1234.56', 2, ',', '.'); // 1.234,56 number_format_except_zero('0', 2, ',', '.'); // 0