Skip to content

Recommended way for extracting decimal components? #868

@jinchengJL

Description

@jinchengJL

Hello, I stumbled upon this library while looking for open-source C++ decimal implementations. It seems to be one of the few options with modern C++ support, and it looks very well maintained. Thanks for the great work.

One of the use cases I have is sending decimal values across the wire to other services. Ideally, the wire format can be a commonly understood binary representation of decimals, such as an integer mantissa and an exponent. While strings could also work, it would incur some extra serialization cost.

I wasn't able to find a way to extract the binary components of a decimal through the public interfaces of the library after some searching. So I'm wondering if there is a recommended way to do this? If not, would this be something you would consider supporting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions