Skip to content

Conversation

@dmlewis08
Copy link
Contributor

  • Extended Mass units with dalton (and KiloDalton, MegaDalton, GigaDalton).
  • Updated tests accordingly.

Wikipedia description of dalton / unified atomic mass unit: Dalton (unit)


protected override double PicogramsInOneKilogram => 1E15;

protected override double DaltonsInOneKilogram => 6.022140762081123E+26;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified with google

"XmlDocSummary": "The Dalton or unified atomic mass unit (abbreviation Da or u) is a unit of mass defined as 1/12 of the mass of an unbound neutral atom of carbon-12 in its nuclear and electronic ground state and at rest.",
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Dalton_(unit)",
"FromUnitToBaseFunc": "{x} * 1.66053906660e-27",
"FromBaseToUnitFunc": "{x} / 1.66053906660e-27",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified from wiki source

@angularsen angularsen changed the title feat(Mass): Added dalton (atomic mass unit) to mass units. Add Mass unit Dalton (atomic mass unit) Dec 6, 2025
@angularsen angularsen merged commit e443840 into angularsen:master Dec 6, 2025
1 check passed
@angularsen
Copy link
Owner

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

Successfully merging this pull request may close these issues.

2 participants