---
title: "Inspect IEEE 754 float32/float64: sign, exponent and mantissa bits, hex, the exact stored value and the rounding error."
method: POST
path: "/api/v1/ieee754"
tags: ["Converters"]
---

# Inspect IEEE 754 float32/float64: sign, exponent and mantissa bits, hex, the exact stored value and the rounding error.

`POST /api/v1/ieee754`

## Request

- Base URL: `https://programmes.net`
- URL: `https://programmes.net/api/v1/ieee754`
- Auth: none declared

IEEE 754 Float Inspector. Operations: `inspect` — Read a decimal (0.1, -2.5e-8, Infinity, NaN) or a bit pattern (0x3DCCCCCD, 32 or 64 binary digits) and show how float32 and float64 store it.

## Request body

- Ieee754Inspect: Read a decimal (0.1, -2.5e-8, Infinity, NaN) or a bit pattern (0x3DCCCCCD, 32 or 64 binary digits) and show how float32 and float64 store it.
  - `operation` 'inspect', required
  - `input` string: A decimal number, Infinity/NaN, 0x + 8 or 16 hex digits, or 32/64 bits.
  - `options` object
    - `format` 'both' | 'float32' | 'float64': Which binary format(s) to show.

## Response `200`

The operation ran.

- object
  - `ok` unknown, required
  - `tool` 'ieee754', required
  - `operation` 'inspect', required
  - `result` unknown, required

## Other responses

- `400`: The request is not valid (https://programmes.net/api#invalid-request); The tool has no such operation (https://programmes.net/api#unknown-operation)
- `404`: No such tool (https://programmes.net/api#unknown-tool)
- `413`: The request or its input is too large (https://programmes.net/api#content-too-large)
- `415`: The body must be JSON (https://programmes.net/api#unsupported-media-type)
- `422`: An option is missing, of the wrong type or out of range (https://programmes.net/api#invalid-options); This call needs more CPU than one API call may use (https://programmes.net/api#refused); The operation could not process the input (https://programmes.net/api#tool-error)
- `429`: Too many requests (https://programmes.net/api#rate-limited)
- `500`: Internal error (https://programmes.net/api#internal-error)

---

[API](https://skmtc.dev/programmes/apis/programmes-net-api.md) · [All operations](https://skmtc.dev/programmes/apis/programmes-net-api/llms.txt) · [OpenAPI document](https://skmtc.dev/programmes/apis/programmes-net-api/revisions/aa939784a2e6?raw)
