Aller au contenu
GET /v1/scientific

Scientific & engineering notation

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/sigfig-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/sigfig-api/v1/scientific" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sigfig-api/v1/scientific", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sigfig-api/v1/scientific");
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/sigfig-api/v1/scientific",
    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": {
        "value": 1500,
        "exponent": 3,
        "mantissa": 1.5,
        "scientific": "1.5e+3",
        "engineering": "1.5e+3",
        "scientific_pretty": "1.5 × 10^3",
        "engineering_pretty": "1.5 × 10^3",
        "engineering_exponent": 3,
        "engineering_mantissa": 1.5
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:03.238Z",
        "request_id": "74cbd299-d352-40ec-bf45-55417200cfee"
    },
    "status": "ok",
    "message": "Scientific notation",
    "success": true
}