mulWithPow¶
mulWithPow(original, base, pow = 1)
Description
original * Math.pow(base, pow)
Parameters :
The multiplier
The base number
The power number
Returns :
Result string
Example¶
mulWithPow(2, 10, 3) // 2 * Math.pow(10, 3)
> "2000"
toFixedDown¶
toFixedDown(num, fixed)
Description
Truncate the float number to the fixed decimal.
Parameters :
The float number.
The decimal you want to keep.
Returns :
Result string
Example¶
toFixedDown(2.0998, 3)
> "2.099"