Skip to content
New issue

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

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

Already on GitHub? # to your account

Add Molality units #1340

Closed
peterjamesnugent opened this issue Dec 20, 2023 · 1 comment · Fixed by #1341
Closed

Add Molality units #1340

peterjamesnugent opened this issue Dec 20, 2023 · 1 comment · Fixed by #1341

Comments

@peterjamesnugent
Copy link
Contributor

peterjamesnugent commented Dec 20, 2023

Is your feature request related to a problem? Please describe.
Add Molarity units (e.g. mol/kg).

Describe the solution you'd like
Add mol/kg and other derivative units (e.g. mol/g etc.)

Describe alternatives you've considered
mol/kg are not covered by the existing units (although there are some with molar units).

Additional context
Happy to write the code and raise a PR if you agree it's worth adding.

https://en.wikipedia.org/wiki/Molality#Unit

Not to be confused with Molarity which is per unit volume: https://en.wikipedia.org/wiki/Molar_concentration

@angularsen
Copy link
Owner

I was convinced this was a typo until you clarified 😄
This seems useful enough, would you be interested in attempting a pull request?

Detailed steps here and I'm happy to help if you have any questions.

https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit

angularsen pushed a commit that referenced this issue Dec 22, 2023
Closes #1340 

Added conversion for Molality covering the following units:
 - MolePerKilogram
 - MolePerGram
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants