Skip to content

ability to specify double precision when writing out #99

Open
@nephatrine

Description

@nephatrine

Would love to have the ability to specify the precision/digits to use when writing out floats. Currently cpptoml is writing out numbers like 0.29799999999999999 and 0.60999999999999999 which contain way too much precision for the source #s (0.298 and 0.610) and simply being able to tell cpptoml to round all doubles to X digits would not only fix that but make these much friendlier and more accurate numbers for human readers/editors of the config.

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