tc39 / proposal-measure

MIT License
12 stars 1 forks source link

More than one minor value? #1

Closed rauschma closed 4 weeks ago

rauschma commented 1 month ago
ben-allen commented 1 month ago

Currently there's no plans for mixed units with more than one minor value. However, this is an artifact of Measure having originally emerged from Smart Units, which only needs foot-and-inch, stone-and-pound, pound-and-ounce, and meter-and-centimeter. That said, the revision I'm currently working on does in fact use an array rather than separate major/minor unit properties, firstly because Measure has a lot of use beyond that original context, secondly because it's on the whole cleaner.

TheOneTheOnlyJJ commented 1 month ago

I believe a method similar to the split method from UnitMath would make the most sense, as it would allow for custom unit minor values to be specified.

ben-allen commented 4 weeks ago

updated version committed