# prettyDifference

`function` in `utils` · v0.4.0

<https://docs.seedcord.org/packages/utils/0.4.0/functions/pretty-difference>

Calculates the difference between two numbers and formats it as a string with a '+' prefix for positive differences.

```ts
prettyDifference(
    numBefore: number,
    numAfter: number
): string
```

Calculates the difference between two numbers and formats it as a string with a '+' prefix for positive differences.

Parameters.

- `numBefore` `number` — The initial number value
- `numAfter` `number` — The final number value

Returns `string`.
