From e50d938b462cf92865216d8a34ed3569ad5a36b8 Mon Sep 17 00:00:00 2001 From: "Meyer, Andrew" Date: Tue, 28 Sep 2021 10:39:42 -0500 Subject: [PATCH 1/2] Add hundred weight mass unit definitions --- src/quantities/definitions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quantities/definitions.js b/src/quantities/definitions.js index 7c130df..8657c50 100644 --- a/src/quantities/definitions.js +++ b/src/quantities/definitions.js @@ -75,6 +75,8 @@ export var UNITS = { "" : [["grain","grains","gr"], 6.479891e-5, "mass", [""]], "" : [["dram","drams","dr"], 0.0017718452, "mass",[""]], "" : [["stone","stones","st"],6.35029318, "mass",[""]], + "" : [["short-hundredweight","us-hundredweight","cwt","cental"],45.359237, "mass",[""]], + "" : [["imperial-hundredweight","uk-hundredweight","long-cwt"],50.80234544, "mass",[""]], /* area */ "":[["hectare"], 10000, "area", ["",""]], From 1ef5a8ed674fb398f306d56f4e53a7dab04d5bae Mon Sep 17 00:00:00 2001 From: "Meyer, Andrew" Date: Tue, 28 Sep 2021 10:50:39 -0500 Subject: [PATCH 2/2] Update order of alternatives --- src/quantities/definitions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quantities/definitions.js b/src/quantities/definitions.js index 8657c50..8345eae 100644 --- a/src/quantities/definitions.js +++ b/src/quantities/definitions.js @@ -75,7 +75,7 @@ export var UNITS = { "" : [["grain","grains","gr"], 6.479891e-5, "mass", [""]], "" : [["dram","drams","dr"], 0.0017718452, "mass",[""]], "" : [["stone","stones","st"],6.35029318, "mass",[""]], - "" : [["short-hundredweight","us-hundredweight","cwt","cental"],45.359237, "mass",[""]], + "" : [["short-hundredweight","us-hundredweight","cental","cwt"],45.359237, "mass",[""]], "" : [["imperial-hundredweight","uk-hundredweight","long-cwt"],50.80234544, "mass",[""]], /* area */