Skip to content

Commit ea502e2

Browse files
committed
add Dalton as a unit
1 parent ad5f24d commit ea502e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unchained/si_units.nim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ declareUnits:
154154
quantity: Length
155155
conversion: 30856775814913673.0.m # 1 AU * 180° * 60 * 60 / π
156156

157+
Dalton: # unified atomic mass, m_u = 1/12 m(¹²C) = 1 Da.
158+
short: Da
159+
quantity: Mass
160+
conversion: 1.66053906892e-27.kg # 1.66053906892(52)×10−27
161+
157162
# given that we have base units & derived base units defined, we can now just
158163
# dump everything together. Everything that is referenced before, can now be
159164
# used to define new units.

0 commit comments

Comments
 (0)