[Home](./index.md) > [bitburner](./bitburner.md) > [Format](./bitburner.format.md) > [ram](./bitburner.format.ram.md) ## Format.ram() method Format a number as an amount of ram. **Signature:** ```typescript ram(n: number, fractionalDigits?: number): string; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| n | number | Number to format as an amount of ram, in base units of GB (or GiB if that Numeric Display option is set). |
| fractionalDigits | number | _(Optional)_ Number of digits to show in the fractional part of the decimal number. Optional, defaults to 2. |