Aritmética de enteros grandes
bigint-calcRealiza aritmética exacta de enteros grandes: suma, resta, multiplicación, división, potencia, comparación. Cuándo: un resultado numérico tiene que ser exacto o reproducible y no estimado. No para: evaluar una expresión matemática con un analizador propio (expression-evaluate). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Computes the exact arbitrary-precision integer arithmetic: add, subtract, multiply, divide (floor quotient and remainder), power (result ≤ 10,000 digits), compare. When: a numeric result has to be exact or reproducible instead of estimated. Not for: evaluating an arithmetic expression with its own parser (expression-evaluate). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First integer (integer or string; required; up to 5001 chars; pattern ^-?\d{1,5000}$). | |
| b | Yes | Second integer (integer or string; required; up to 5001 chars; pattern ^-?\d{1,5000}$). | |
| operation | Yes | Operation (required; one of: add, subtract, multiply, divide, power, compare). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | any JSON value | |
| quotient | No | ||
| remainder | No |