The value to calculate the percentage of
The percentage to calculate
The decimals of the value.
The percentage of the given value scaled according to the specified decimals
calcPercentValue(100, 10, 6) // 10
calcPercentValue(100, 25, 6) // 25
calcPercentValue(100e18, 50, 18) // 50000000000000000000n || 50e18
Calculates the specified percentage of a given value.