Skip to content

More control over display mode / number format #219

@joshop

Description

@joshop

Hi! I was a huge fan of insect and glad that it's getting even more features, but one thing that I always found missing was a good way to control more specifically how numbers are printed. It's possible I'm missing a builtin function or operator for this in numbat, but both of these feel unhelpful:

>>> 1e14 m

  100000000000000 meter

    = 100000000000000 m    [Length]

>>> 1e-6 m

  0.000001 meter

    = 0.000001 m    [Length]

It would be nice to be able to specify that I want to see 1e14 m or 1e-6 m in this case, or maybe even specify a precision level or a fixed exponent. If you have many quantities in the range 1e-8 m, for instance, you might want to print 1e-9 m as 0.1e-8 m, so it's visually easier to compare. I think the default behavior would stay the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions