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

implement dimensionless units becoming numbers automatically (introduces 2 new options) #5

Open
sebkopf opened this issue Jan 14, 2025 · 0 comments

Comments

@sebkopf
Copy link
Contributor

sebkopf commented Jan 14, 2025

a couple aspects to this:

  • always simplify to unitless after multiplication/division if it's possible (i.e. the "1" should not need to be listed in default units (it's only confusing)) but make that an option that's something along the lines of simplify_unitless = TRUE(default)/FALSE and then to turn it into normal numeric declass_unitless = TRUE(default)/FALSE)
  • then set_cu(1, "mg") / set_cu(1, "ng") would just become 1e6 (no units)
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

1 participant