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

Devise a method for normalizing storage of different units in a packed Long #13

Open
kevincianfarini opened this issue Dec 19, 2024 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@kevincianfarini
Copy link
Owner

Similar to how Duration stores a value in either milliseconds or nanoseconds.

@kevincianfarini
Copy link
Owner Author

This will be particularly helpful for Area and Volume. Their scales are much more steep than other SI units' -- Area scales by 1,000,000 between each order of magnitude, for example. Sacrificing 2 bits of storage capacity allows us to model the following for area with gradually degrading precision:

  1. 2.3km² at μm² precision
  2. 2.3Mm² at mm² precision
  3. 230Mm² at cm² precision
  4. 2.3Gm² at m² precision

@kevincianfarini kevincianfarini added this to the 0.1.1 milestone Jan 5, 2025
@kevincianfarini
Copy link
Owner Author

Volume could have the following ranges:

  1. 2.3 m3 at μm3 precision.
  2. 2.3 km3 at mm3 precision.
  3. 2.3 Mm3 at m3 precision.
  4. 2.3 Gm3 at km3 precision.

@kevincianfarini
Copy link
Owner Author

This is required to even attempt #51. Before starting we should determine if representing different ranges of values provides a satisfying result, or if #55 would provide a better result.

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

No branches or pull requests

1 participant