---
title: "f32: type in Runtime, TypeShade API reference for developers"
description: "f32, a type in Runtime. An f32 as a host value (Rule 8.21): a number, which a call rounds as a buffer write rounds it."
url: https://typeshade.dev/api/f32-type/
language: en
---

# `f32`

Type in Runtime

An `f32` as a host value (Rule 8.21): a number, which a call rounds as a buffer write rounds it.

`import type { f32 } from 'typeshade/runtime'`

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

## Syntax

```ts
type f32 = number & { readonly [tag]?: 'f32' };
```

## Description

A plain number is an `f32`; a value of another name of the family is not.

## In the guide

- [Language guide](https://typeshade.dev/guide/internals/)
- [Your first shader](https://typeshade.dev/guide/internals/your-first-shader/)
- [Values and mutation](https://typeshade.dev/guide/internals/values-and-mutation/)
- [Layouts and resources](https://typeshade.dev/guide/internals/layouts-and-resources/)
- [Emitting and reflection](https://typeshade.dev/guide/internals/emitting-and-reflection/)
- [The CPU oracle](https://typeshade.dev/guide/internals/the-cpu-oracle/)
- [Diagnostics](https://typeshade.dev/guide/internals/diagnostics/)
- [Conditional programs](https://typeshade.dev/guide/internals/conditional-programs/)
- [fp64](https://typeshade.dev/guide/internals/fp64/)
- [Production emit](https://typeshade.dev/guide/internals/production-emit/)
- [Migrating a GLSL shader](https://typeshade.dev/guide/internals/migrating-a-glsl-shader/)

## Source

[`src/runtime/host-types.ts`, line 44](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/host-types.ts#L44), at commit af54ddad5
