Skip to content

default_cell_formatter() in DataTable formats float to 2-digit scale, which is often undesirable. #4933

@grvstick

Description

@grvstick

Code

content = f"{obj:.2f}"

This defaults all floats to be in 2-digit scale. I think it would be better to change this to simple float-to-str conversion, so that the user can decide the scale. If there is a specific reason to limit the float type scales, the scale should be left to maximum to the limits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions