# decodeFloat64Key

> **decodeFloat64Key**(`bytes`, `offset?`): `number`

Defined in: [packages/key-encoding/src/scalars.ts:169](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/key-encoding/src/scalars.ts#L169)

Decode the 8-byte `encodeFloat64Key` encoding at `offset`.

## Parameters

### bytes

`Uint8Array`

### offset?

`number`

## Returns

`number`

## Throws

`INVALID_KEY_VALUE` or `INVALID_OFFSET`, as [decodeUint32Key](/reference/knotkit/key-encoding/functions/decodeuint32key/).

## Throws

`TRUNCATED_KEY` when fewer than 8 bytes follow `offset`, `TRAILING_BYTES` as [decodeUint32Key](/reference/knotkit/key-encoding/functions/decodeuint32key/), or `NON_CANONICAL_FLOAT64` when the bytes hold a `NaN` or `-0` pattern, which no encoder writes.
