Subtract an amount
from value
, limiting the minimum result to min
.
name | type | description |
---|---|---|
value | number |
The value to subtract from. |
amount | number |
The amount to subtract. |
min | number |
The minimum value to return. |
The resulting value.