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

# Function: bigToNumber()

```ts
function bigToNumber(b: BigNumber): number;
```

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

Convert a [BigNumber](https://mathjs.org/docs/datatypes/bignumbers.html) back to a JS number (for cases that must hand off a float64).

## Parameters

| Parameter | Type                                                             |
| --------- | ---------------------------------------------------------------- |
| `b`       | [`BigNumber`](https://mathjs.org/docs/datatypes/bignumbers.html) |

## Returns

`number`
