We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi guys, I was wondering if it would be possible to allow for a greater than 100 for percentage.
For example; it would be helpful to calculate what 150% of some item would cost.
Currently the following throws an error:
const itemCost = Dinero(500); const newItemCost = itemCost.percentage(150) const newItemCostValue = newItemCost.getAmount()
I would expect newItemCostValue to be 750 but right now I just get RangeError: You must provide a numeric value between 0 and 100
newItemCostValue
750
RangeError: You must provide a numeric value between 0 and 100
Thank you!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys, I was wondering if it would be possible to allow for a greater than 100 for percentage.
For example; it would be helpful to calculate what 150% of some item would cost.
Currently the following throws an error:
I would expect
newItemCostValue
to be750
but right now I just getRangeError: You must provide a numeric value between 0 and 100
Thank you!
The text was updated successfully, but these errors were encountered: