Calculates the total price based on the number of units and unit price.
Optional
pass true to allow -ve values for resulted total price
true
calcTotalPrice('100', '12', 2, 2) // 12nBigInt(2223e17), '12000000', 18, 6) // 2667600000n Copy
calcTotalPrice('100', '12', 2, 2) // 12nBigInt(2223e17), '12000000', 18, 6) // 2667600000n
Calculates the total price based on the number of units and unit price.