au icon indicating copy to clipboard operation
au copied to clipboard

Disambiguate prefixed exponentiated unit labels

Open chiphogg opened this issue 3 months ago • 1 comments

milli(inverse(bytes)) and inverse(milli(bytes)) both have a label mB^(-1), but they are different by a factor of 1 million.

chiphogg avatar Aug 30 '25 18:08 chiphogg

Interestingly, mp-units doesn't have this problem, because they don't let you apply prefixes to units that aren't "named units": https://godbolt.org/z/51adTTbhz.

chiphogg avatar Aug 30 '25 19:08 chiphogg