Número en letras (inglés)
number-to-words-enEscribe un entero en palabras en inglés (cardinal u ordinal). Cuándo: un resultado numérico tiene que ser exacto o reproducible y no estimado. No para: escribir un entero hasta 10^18 en palabras en español (es-number-to-words). 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: Spells an integer (|n| < 10^18) in English words, as a cardinal (one hundred twenty-three) or ordinal (one hundred twenty-third). When: a numeric result has to be exact or reproducible instead of estimated. Not for: spelling an integer up to 10^18 in Spanish words (es-number-to-words). 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 |
|---|---|---|---|
| n | Yes | Integer (integer or string; required; up to 19 chars; pattern ^-?\d{1,18}$). | |
| ordinal | No | Ordinal form (boolean; optional; default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | No |