Number Scale Converter
Convert numbers between SI, Time, IEEE 1541, and custom scales with precision control, multiple rounding modes, and recursive decomposition.
| Tier | Multiplier | Formatted Value |
|---|
About
Large and small numbers cause misreading errors. A value like 123456789 is easy to miscount by one order of magnitude, and the cost of that mistake in engineering or finance is real. This tool converts raw numeric values into human-readable scaled representations using the SI (International System of Units), Time (day, hour, minute, second, sub-second), and IEEE 1541 (binary powers of 1024) scales. It supports four rounding modes - ceil, floor, banker's even, and odd - and a recursive decomposition mode that breaks a number into multiple unit tiers (e.g., 1d 10h 17m). You can also define fully custom scales with arbitrary prefixes and base values.
The tool approximates values at the precision you choose. Rounding propagation across recursive tiers uses remainder subtraction, not independent rounding, so cumulative drift stays below 1 unit of the smallest tier. Note: the parser (reverse conversion) expects well-formed strings; ambiguous suffixes like m (milli vs. meter) resolve to the active scale context only.
Formulas
The converter locates the largest scale tier whose absolute base value does not exceed the input magnitude, then divides:
Where n is the input number, basetier is the multiplier of the matched scale tier, and p is precision (decimal digits). Rounding modes operate on the shifted value v = n ร 10p:
For recursive decomposition of depth d, the algorithm iterates: extract the integer portion at the current tier, subtract its contribution, descend to the next smaller tier, and repeat up to d + 1 terms. The last term receives the fractional remainder rounded at precision p.
Banker's rounding resolves the half-way case: if the digit immediately after the rounding position is exactly 5 with no further nonzero digits, the value rounds to the nearest even number. Odd rounding mirrors this toward the nearest odd number.
Reference Data
| Scale | Prefix | Symbol | Multiplier |
|---|---|---|---|
| SI | yotta | Y | 1024 |
| SI | zetta | Z | 1021 |
| SI | exa | E | 1018 |
| SI | peta | P | 1015 |
| SI | tera | T | 1012 |
| SI | giga | G | 109 |
| SI | mega | M | 106 |
| SI | kilo | K | 103 |
| SI | (base) | - | 100 |
| SI | milli | m | 10โ3 |
| SI | micro | ฮผ | 10โ6 |
| SI | nano | n | 10โ9 |
| SI | pico | p | 10โ12 |
| SI | femto | f | 10โ15 |
| SI | atto | a | 10โ18 |
| SI | zepto | z | 10โ21 |
| SI | yocto | y | 10โ24 |
| Time | day | d | 86400 s |
| Time | hour | h | 3600 s |
| Time | minute | m | 60 s |
| Time | second | s | 1 s |
| Time | millisecond | ms | 10โ3 s |
| Time | microsecond | ฮผs | 10โ6 s |
| Time | nanosecond | ns | 10โ9 s |
| IEEE 1541 | yobi | YiB | 280 |
| IEEE 1541 | zebi | ZiB | 270 |
| IEEE 1541 | exbi | EiB | 260 |
| IEEE 1541 | pebi | PiB | 250 |
| IEEE 1541 | tebi | TiB | 240 |
| IEEE 1541 | gibi | GiB | 230 |
| IEEE 1541 | mebi | MiB | 220 |
| IEEE 1541 | kibi | KiB | 210 |
| IEEE 1541 | byte | B | 20 |