[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / percentOfAmount

# Function: percentOfAmount()

> **percentOfAmount**(`amount`, `percent`): `number`

Returns the percentage of an amount rounded to the hundreths (second) decimal place.

Example: percentOfAmount(200, 80) returns 160

## Parameters

• **amount**: `number`

The amount.

• **percent**: `number`

The percent of the amount that should be returned.

## Returns

`number`

The percentage of the amount.

## Defined in

[utils/price.util.ts:488](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/utils/price.util.ts#L488)
