Aller au contenu
GET /v1/decode

IEEE 754 bits to number

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/ieee754-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/ieee754-api/v1/decode" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ieee754-api/v1/decode", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ieee754-api/v1/decode");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/ieee754-api/v1/decode",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "hex": "0x40490fdb",
        "bias": 127,
        "bits": 32,
        "sign": 0,
        "value": 3.1415927410125732,
        "binary": {
            "sign": "0",
            "exponent": "10000000",
            "mantissa": "10010010000111111011011"
        },
        "exponent": 1,
        "precision": "single",
        "exponent_raw": 128,
        "mantissa_hex": "0x490fdb",
        "sign_meaning": "positive",
        "classification": "normal"
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:19.219Z",
        "request_id": "ea7fb585-3fbb-4802-9837-9283fe7a926c"
    },
    "status": "ok",
    "message": "IEEE 754 bits to number",
    "success": true
}