Skip to content

proper money conversions without loosing decimal point accuracy #10

@ghost

Description

when working with number conversions between locale currencies at the moment yu loose accuracy.
there are lots of other corner cases too shown here:
https://www.cockroachlabs.com/blog/apd-arbitrary-precision-decimal-package/

this is a nice wrapping and examples for how to deal with it.
https://github.com/erizocosmico/go-money

I think its maybe worthwhile using this, but up to you of course.
Just highlighting the issue that most libraries dont tackle.

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