Aller au contenu
GET /v1/encode

Number to IEEE 754 bits

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/encode" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ieee754-api/v1/encode", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ieee754-api/v1/encode");
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/encode",
    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": "0x400921fb54442d18",
        "bias": 1023,
        "bits": 64,
        "sign": 0,
        "value": 3.141592653589793,
        "binary": {
            "sign": "0",
            "exponent": "10000000000",
            "mantissa": "1001001000011111101101010100010001000010110100011000"
        },
        "exponent": 1,
        "precision": "double",
        "exponent_raw": 1024,
        "mantissa_hex": "0x921fb54442d18",
        "sign_meaning": "positive",
        "classification": "normal"
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:19.328Z",
        "request_id": "6a92912f-d8f9-432c-8f58-7e459251f208"
    },
    "status": "ok",
    "message": "Number to IEEE 754 bits",
    "success": true
}