PHP_XLSXWriter
PHP_XLSXWriter copied to clipboard
Numeric format without rounding
How to format numeric float values with automatic number of decimal places (without rounding).
I need column values "1", "1,2", "1,23", "1,234", "1,2345". Not rounding values "1,00", "1,20", "1,23", "1,23", "1,24".
$sheet1header` = [
'not-work-integer'=>'integer',
'not-work-custom-integer'=>'0',
'not-work-custom-1decimal'=>'0.0',
'not-work-custom-2decimal'=>'0.00',
'draft-float'=>'float',
];