Skip to content

Commit

Permalink
feat(measurements): Add ‘hm’ (himetric) unit
Browse files Browse the repository at this point in the history
Metric equivalent of ‘twip’ in the SI world, adding largely for
posterity because it's low cost. I use mostly imperial units, but this
could be useful for the same reason twips are used instead of very small
decimals of points: working with smaller units and larger numbers is
easier mental gymnastics than very small fractions of large units.
  • Loading branch information
alerque committed Apr 27, 2021
1 parent cf9d5a7 commit f4b6b62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ units["m"] = {
definition = "100cm"
}

units["hm"] = {
definition = "0.01mm"
}

units["in"] = {
definition = "72pt"
}
Expand Down

0 comments on commit f4b6b62

Please sign in to comment.