list_prefixes
List every SI and binary prefix with its exact multiplier to find correct spellings for unit conversions.
Instructions
List every SI and binary prefix in the GNU units database with its multiplier (TODO §13).
Enumerates all defined prefixes — the SI decimal ladder (quetta…quecto and
their symbols Q…q) plus the binary/IEC prefixes (kibi/Ki, mebi/Mi,
…) — sorted by descending magnitude. Useful for discovering the exact prefix
spelling to use in a convert or convert_to_si expression, or for seeing a
prefix's exact numeric value.
Returns: count (number of prefixes) and prefixes, a list of objects each
with name (the prefix, without its trailing hyphen) and multiplier (its
value as a string, exact where the value is an exact integer, e.g. kibi ->
"1024", mega -> "1000000").
Example: list_prefixes() ->
{"count":125,"prefixes":[{"name":"quetta","multiplier":"1000000000000000000000000000000"},
...,{"name":"kibi","multiplier":"1024"}, ...]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||