Skip to content

compact number output including small values #807

@franzhaas

Description

@franzhaas

The great table feature to format numbers "compact" works nicely for large numbers, but it does not yet support small numbers.

moving from an array ["", "K", "M", "B", "T", "Q"] to {-5:"f", -4:"p", -3:"n", -2:"µ", -1:"m", 0: "", 1:"K", 2:"M", 3:"G", 4:"T", 5:"P"} in _format_number_compactly would allow us to format also small numbers.

Note that i changed B to G (iga) and B to Q (eta) in this example.

There is some proof of concept work on how that could look.:
[https://github.com/franzhaas/great-tables]

what do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions