formatTaxRate()
function formatTaxRate(taxRate): numberFormat a tax rate from a bigint to a decimal number.
Parameters
| Parameter | Type | Description |
|---|---|---|
taxRate | bigint | The tax rate to format. |
Returns
number
- The formatted tax rate.
Example
const formatted = formatTaxRate(10000000000000000n);
console.log(formatted);