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

feat(/convert): per-type formulas #200

Open
kyranet opened this issue Feb 8, 2024 · 0 comments
Open

feat(/convert): per-type formulas #200

kyranet opened this issue Feb 8, 2024 · 0 comments

Comments

@kyranet
Copy link
Member

kyranet commented Feb 8, 2024

Some units support multiple targets, however, their formulas to the SI differ.

For example:

  • 1 eV equals to:
    • 1.6E-16 g
    • 1.6022E-19 J

The per-type formula used would be of the opposite unit's type, whichever matches, meaning that:

  • from:eV to:g should return 1.6E-16 g
  • from:eV to:J should return 1.6022E-19 J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant