# percentage

`function` in `utils` · v0.8.6-next.0

<https://docs.seedcord.org/packages/utils/0.8.6-next.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`
- `num2` `number`

Returns `number`.
