[Home](./index.md) > [bitburner](./bitburner.md) > [Format](./bitburner.format.md) > [percent](./bitburner.format.percent.md) ## Format.percent() method Format a number as a percentage. **Signature:** ```typescript percent(n: number, fractionalDigits?: number, suffixStart?: number): string; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| n | number | Number to format as a percentage. |
| fractionalDigits | number | _(Optional)_ Number of digits to show in the fractional part of the decimal number. Optional, defaults to 2. |
| suffixStart | number | _(Optional)_ When to switch the percentage to a multiplier. Default is 1e6 or x1.00m. |