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

Mixed units: index by largest or smallest unit? #11

Open
sffc opened this issue Nov 7, 2024 · 1 comment
Open

Mixed units: index by largest or smallest unit? #11

sffc opened this issue Nov 7, 2024 · 1 comment
Labels

Comments

@sffc
Copy link

sffc commented Nov 7, 2024

In a mixed unit such as "foot-and-inch", in what unit should the scalar value be indexed?

Should 5 feet 10 inches be:

  1. 70 foot-and-inch (indexed in smallest unit)
  2. 5.833 foot-and-inch (indexed in largest unit)

ICU internally does option 2, but I don't see that behavior discussed in UTS 35.

@macchiati @younies @ben-allen

@ben-allen
Copy link
Collaborator

I've been assuming option 2, largely because I've been thinking of precision as being tied to the larger unit. An argument in favor of option 1 might be the meter-and-centimeter mixed unit used for person-heights in some locales; when creating a Measure using meter-and-centimeter as unit, it is likely more natural to give (for example) 180 instead of 1.80 for value.

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

No branches or pull requests

2 participants