Memory unit converter

Standard units

New units

Description of the new system

This is an implementation of the system of measuring computer memory as described at this blog post.

The amount of memory addressable by a word-width sized address is called a page, and gets the prefix P (note that's capital P). Pages of pages start with the repage, using the Lojban word for numbers to extend the system. Lojban numbers used in the system are no, pa, re, ci, vo, mu, xa, ze, bi, so for 0-9. These are abbreviated to n, p, r, c, v, m, x, z, b, s in the notation. A repage would be rP 1. The prefix indicates the biggest unit. Quantities in other units following it are introduced by colons, except bytes which are introduced by a dot. 431615 bytes is rP 6:149.255.

The default base and word width of binary and 8 mean that a page is 256 bytes, and a repage is 256 pages and so on. But to change the width, add a capital W followed by the width before the rest of the memory being measured. This can change the value of a page quite drastically. Conversions to standard units calculate the number of bits in the new system, before dividing that bit count by 8 for byte count and then dividing that to get to the biggest relevant unit.

Conversions from standard units to new units assume a word width of 8 bits.

You can change the base by using the capital S system prefix. This is only of use when measuring memory in very exotic systems, such as ternary or decimal computers. Values from converting amounts using the system prefix may not be particularly meaningful. As far as I am aware, kilobytes and megabytes have never been used on the few, extremely rare ternary computers.

Only conversion from the old system to the new is currently supported. Conversion the other way will be added Soon™.