conversion_ieee754_float
Convert decimal numbers to IEEE 754 floating-point bits (single/double precision) or decode binary/hex bit strings back to decimal values. Get exact sign, exponent, and mantissa breakdown.
Instructions
IEEE 754 Floating-Point Converter. Decompose a decimal number into its IEEE 754 binary floating-point bits (sign, exponent, mantissa) at single (32-bit) or double (64-bit) precision, or reverse a binary/hex bit string back to its decimal value. Set mode to decimal-to-ieee754 or ieee754-to-decimal, precision to single or double, and (when decoding) inputFormat to binary or hex. Use this when you need the exact stored bit layout, the biased/actual exponent, or special-case detection (Zero, Subnormal, Infinity, NaN); use conversion_base_converter for plain integer radix conversion or conversion_binary_decimal for signed/unsigned integers. Runs locally on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). Returns the converted output plus a full bit breakdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | A decimal number (when mode is decimal-to-ieee754) or a bit string (when mode is ieee754-to-decimal). Must not be blank; whitespace is trimmed. | |
| mode | Yes | Direction of conversion: decimal number into IEEE 754 bits, or IEEE 754 bits back into a decimal number. | |
| precision | No | IEEE 754 width: single is 32-bit (8-bit exponent, 23-bit mantissa); double is 64-bit (11-bit exponent, 52-bit mantissa). | single |
| inputFormat | No | Format of input when decoding (mode ieee754-to-decimal): a binary bit string (32 or 64 bits) or a hex string (8 or 16 chars). Ignored when encoding. | binary |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the conversion succeeded. | |
| result | No | The conversion output and bit-level analysis. | |
| error | No | Error message when success is false (HTTP 400). |