Skip to content

Allow rounding bypass when creating Money objects #306

Description

@dmasciotra

Description

There are some use cases where we would like to have an object contain both the currency and an amount, but not have the library auto round for us based on currency settings.
An example could be to represent the value of something to a more precise decimal than the currency supports, for purposes of bulk purchases.
A more concrete example could be to set the price of something as $0.057 USD so that when we have 100 of the item, the total cost would be $5.70 USD.

It should be noted arithmetic and logical operations should use this raw value as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions