Skip to content

String representation guarantees #787

@akrzemi1

Description

@akrzemi1

It is not clear from the docs, if the types guarantee some normalized representation of decimal numbers. The same value can be created in a number of ways:

boost::decimal::decimal64 x { 110, -1};
boost::decimal::decimal64 y { 11000, -3};

It is not clear from the docs, if they are guaranteed to have the same internal representation.
Similarly, it is unclear if the library guarantees an identical string representation of x and y (for instance, to_chars) when I choose the scientific notation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Boost ReviewCollected Comments from Boost Review Period

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions