# fmtBytes

Function

Source: https://github.com/playcanvas/splat-transform/blob/b6424a5b3b929695fbaafe738a995adb1240d675/src/lib/utils/fmt.ts#L28

```ts
fmtBytes(n: number): string
```

Format a byte count using binary (1024-based) units.

**Parameters**

- `n` (`number`): The number of bytes.

**Returns** `string`: The formatted string (e.g. `1.5MB`).
