Units icon indicating copy to clipboard operation
Units copied to clipboard

Allow conversion to a unit list

Open ben-cohen opened this issue 2 years ago • 1 comments

GNU Units allows you to convert to a sum of two or more units separated by semicolons, called a "unit list". It returns the largest whole number of the first unit, and then uses the next unit for the remainder, and so on:

You have: 7 meters
You want: ft;in
        22 ft + 11.590551 in
You have: 7m
You want: yard ; foot ; inch
        7 yard + 1 foot + 11.590551 inch

In Units, I expected the same result for the inputs above, but instead it gives the error "Unit ';' is unknown."

It would also be useful to have a button to enter ;.

ben-cohen avatar Jul 13 '22 17:07 ben-cohen

v1.2 of my fork can now do this.

buttercookie42 avatar Jan 23 '24 21:01 buttercookie42