Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than one minor value? #1

Open
rauschma opened this issue Oct 10, 2024 · 1 comment
Open

More than one minor value? #1

rauschma opened this issue Oct 10, 2024 · 1 comment

Comments

@rauschma
Copy link

  • Could there ever be more than one minor value?
    • I’m thinking of the following but I’m not sure if they are use cases for Measure: hours-minutes-seconds and degrees-minutes-seconds
  • If yes, then .value could become an Array with one or more elements and .minorValue could be removed.
@ben-allen
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants