calculate_number_base_convert
Convert numbers between binary, octal, decimal, and hex bases for programming. Provide the value as string, source base, and target base to receive the converted number.
Instructions
Convert a number between bases 2 (binary), 8 (octal), 10 (decimal), and 16 (hex). Use for programming. Inputs: value, from-base, to-base. Returns converted number. See list_bundles for related 'conversions' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Number to convert as string | |
| from_base | Yes | Source base | |
| to_base | Yes | Target base |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |