---
title: "f64Parts(): IR builder function in typeshade/core/ir"
description: "f64Parts, an IR builder function in typeshade/core/ir. The (hi, lo) pair of an f64 as a plain vec2<f32>…"
url: https://typeshade.dev/api/f64parts/
language: en
---

# `f64Parts()`

Function in Builtins

The (hi, lo) pair of an `f64` as a plain `vec2<f32>`, for storing an `f64` into a `vec2` buffer field or stage output.

`import { f64Parts } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const f64Parts: (x: ReadonlyNode<"f64">) => Node<"vec2<f32>">
```

## Parameters

**`x` `ReadonlyNode<'f64'>`**

## Return value

`Node<'vec2<f32>'>`

## Description

The (hi, lo) pair of an `f64` as a plain `vec2<f32>`, for storing an `f64` into a `vec2` buffer field or stage output. It costs nothing, since an emitted `f64` already is its pair; `f64FromParts(v.x, v.y)` restores it.

## Targets

| Target | Support | Notes |
| --- | --- | --- |
| WGSL (WebGPU) | Emulated | Rewritten by `fp64Lower` into a pair of `f32` lanes before the backend runs. |
| GLSL ES 3.00 (WebGL2) | Emulated | Rewritten by `fp64Lower` into a pair of `f32` lanes before the backend runs. |
| CPU oracle | Supported | Evaluated in `f64` by the oracle. |

## Source

[`src/core/ir/node.ts`, line 2125](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L2125), at commit af54ddad5
