# percentage

`function` in `utils` · v0.4.0

<https://docs.seedcord.org/packages/utils/0.4.0/functions/percentage>

Takes two numbers and returns the percentage of the first number in the second number with two decimal places.

```ts
percentage(
    num1: number,
    num2: number
): number
```

Takes two numbers and returns the percentage of the first number in the second number with two decimal places.

Parameters.

- `num1` `number` — The first number.
- `num2` `number` — The second number.

Returns `number`.
