Closed 0xflotus closed 1 year ago
Sounds good. Note that we have a slightly more complete set for binary prefixes, if you're mostly interested in data sizesa. They go up to up to yobi (YiB
):
Sounds good. Note that we have a slightly more complete set for binary prefixes, if you're mostly interested in data sizesa. They go up to up to yobi (
YiB
):
Are zetta, yotta, yocto and zepto also missing?
It's not possible to convert 1e21 m to Zm.
1e21 m -> Zm 1e+21 m ➞ Zm Unknown identifier: Zm
@sharkdp do we want to have this in our next release?
I would hope it could be an easy thing to add. Unless this creates new "conflicts". Like for example, if <new SI prefix>
+<existing unit that takes an SI prefix>
==<name of other existing unit>
. We wouldn't expect any such conflicts within SI, of course. But maybe with one of the non-standard units that we also support. Examples for a clash from the past: f
(femto)+t
(ton)==ft
(feet).
Hmm, I'm not motivated enough to check for conflicts at the moment, so I'm leaving it for later (or for somebody else :P), unless you want to work on it of course.
If course. I don't think we need to manually check for conflicts. I think we have parametrized tests in place that make sure that units with prefixes are properly parsed
is there any reason P and M aren't defined for peta and mega? From what I can tell, the parser is in fact case sensitive.
Ignore me, I just saw that they are defined separately, probably for parsing reasons.
With insect I can add two datasizes like Petabyte and Terabyte.
But it is not possible to add a Quettabyte and an Exabyte.
Please implement the new metric prefixes to allow this.