---
title: "accuracyOf(): function in Tooling, TypeShade API reference"
description: "accuracyOf, a function in Tooling. What WGSL §15.7.4 allows the result of one operation to be, for a builtin id…"
url: https://typeshade.dev/api/accuracyof/
language: en
---

# `accuracyOf()`

Function in Tooling

What WGSL §15.7.4 allows the result of one operation to be, for a builtin id, a binary operator or a matrix product as the IR names it, computing in `f32`: { kind: 'exact' } when there is one answer and both targets give it, otherwise the kind and bound determinismReport would list it with.

`import { accuracyOf } from 'typeshade'`

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

## Syntax

```ts
function accuracyOf(op: string): DeterminismAccuracy | undefined
```

## Parameters

**`op` `string`**

## Return value

`DeterminismAccuracy | undefined`

## Description

`undefined` for a name the table does not know, which the test suite turns into a failure for every id the compiler can emit, so the answer is never `undefined` for a real one.

## See also

- [`determinismReport`](https://typeshade.dev/api/determinismreport/)

## Source

[`src/core/passes/determinism/accuracy.ts`, line 237](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/determinism/accuracy.ts#L237), at commit af54ddad5
