Skip to content

Align to decimal point by default #254

@jariji

Description

@jariji

It would be easier to read tables if they were aligned to decimal point by default. Currently the order of magnitude represented by each column is inconsistent so it's hard to read. Of course I can customize it for each table, but it seems like a good default to me.

Current:

julia> pretty_table([(;a=1.0),(;a=1.23)])
┌─────────┐
│       a │
│ Float64 │
├─────────┤
│     1.0 │
│    1.23 │
└─────────┘

Proposed:

julia> pretty_table([(;a=1.0),(;a=1.23)])
┌─────────┐
│       a │
│ Float64 │
├─────────┤
│    1.00 │
│    1.23 │
└─────────┘

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