conversion_string_number
Convert text between six numeric representations: Unicode code points, integers, floats, scientific notation, English words, and Roman numerals. Ideal for mapping characters to code points or reformatting number lists.
Instructions
String / Number Format Converter. Convert text between six representations of the same underlying numeric values: string (each character as its Unicode code point), integer, float, scientific notation, English number words (zero-twenty, tens, hundred, thousand, million), and Roman numerals. Parsing string reads each character code point; the other types read space/comma/newline-separated tokens. Use this to map characters to/from code points or to reformat a list of numbers; use conversion_roman_numerals for a dedicated Roman converter, and conversion_number_base for ASCII/binary/hex/octal byte encodings. Runs locally on the supplied text: read-only, non-destructive, offline, no auth, default rate limit. Returns the converted string, an analysis block, and reference info for the target format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Value(s) to convert. For from_type=string the whole text is read character-by-character; for numeric types it is split on spaces, commas, and newlines into separate values. Must be non-empty. | |
| from_type | Yes | How to interpret the input. string=Unicode code points per character; integer/float/scientific=numeric tokens; words=English number words; roman=Roman numerals. | |
| to_type | Yes | Output format. string emits one character per code point; float fixes 3 decimals; scientific uses 3-digit exponential; roman supports 1-3999; words covers 0-99 then falls back to digits. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the conversion succeeded. | |
| result | No | The values rendered in to_type (empty string on error). | |
| error | No | Error message; present only when success is false (e.g. empty input, invalid token, unknown number word). | |
| analysis | No | Conversion stats (null on error): input_length, output_length, values_count, value_statistics{min,max,average,sum}, conversion_type{from,to}, data_type_analysis{integers,floats,negative,zero,positive}, encoding_info{source_format,target_format,reversible,precision_loss}. | |
| format_info | No | Reference info for to_type (name, description, example, data_type); present only on success. |