---
url: 'https://adk.nht.io/api/@nhtio/adk/lib/helpers/bignum/functions/toBig.md'
---

# Function: toBig()

```ts
function toBig(n: number): BigNumber;
```

Defined in: [lib/helpers/bignum.ts:42](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/lib/helpers/bignum.ts#L42)

Coerce a JS number to a [BigNumber](https://mathjs.org/docs/datatypes/bignumbers.html). Non-finite inputs are a caller bug (schemas reject them).

## Parameters

| Parameter | Type     |
| --------- | -------- |
| `n`       | `number` |

## Returns

[`BigNumber`](https://mathjs.org/docs/datatypes/bignumbers.html)
