> ## Documentation Index
> Fetch the complete documentation index at: https://kk-83bff226.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# binaryToDecimal

> Converts a binary number (as a string or number) to a decimal number.

## Signature

```typescript path=null start=null theme={null}
binaryToDecimal(binary: string | number): number
```

## Parameters

* **binary**: `string | number` - The binary number to be converted. Can be a string or a number.

## Returns

`number` - The decimal representation of the binary number.

## Source

Defined in [number.ts:75](https://github.com/koji/ichigyou/blob/main/src/number.ts#L75)
