Open
Description
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
Thank you!
Metadata
Metadata
Assignees
Labels
No labels