Skip to content

Numeric format without rounding #369

@WEXBO

Description

@WEXBO

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',
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions