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

***

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

# Function: toFixed()

> **toFixed**(`num`, `precision`): `number`

Rounds a number to a specified precision and returns the result.

## Parameters

• **num**: `number`

The number to round.

• **precision**: `number`

The number of decimal places to round to.

## Returns

`number`

The rounded number.

## Defined in

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