parseTaxRate()
function parseTaxRate(taxRate): bigint
Parse a tax rate from a number to a bigint.
Parameters
Parameter | Type | Description |
---|---|---|
taxRate | number | The tax rate to parse. |
Returns
bigint
The parsed tax rate.
Example
const parsed = parseTaxRate(0.01);
console.log(res)