Skip to content

Default null_value does not render correctly #9

Description

@kwinkunks

Thank you for this library; I'm using it in gio.

The default null value of 1e+30 is passed to a format string like "{0:>{1}.{2}f}".format(1e30, 12, 4) (see line in code) and produces '1000000000000000019884624838656.0000' instead of '1e+30 or possibly '1.0000e+30'.

Could fix by using the str() of the null value for NaNs, and the current format string for 'normal' values. Or you could change the format string to something like "{0:>{1}.{2}e}" (which would use scientific notation for everything, not sure if that's desirable).

I will submit a PR for a fix; you can decide what to do with it!

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