From c40c9bb48245163d7d8906ba03bd03f43449cd21 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Thu, 7 Oct 2021 10:02:14 -0400 Subject: [PATCH] Add nautical miles, fathoms, and yards --- macrovision.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/macrovision.js b/macrovision.js index 8612898c..058bbfbf 100644 --- a/macrovision.js +++ b/macrovision.js @@ -82,6 +82,16 @@ math.createUnit("timezones", { prefixes: "long", aliases: ["timezone", "timezones"] }); +math.createUnit("nauticalMiles", { + definition: "6080 feet", + prefixes: "long", + aliases: ["nauticalMile", "nauticalMiles"] +}); +math.createUnit("fathoms", { + definition: "6 feet", + prefixes: "long", + aliases: ["fathom", "fathoms"] +}); math.createUnit("earths", { definition: "12756km", @@ -317,7 +327,9 @@ const unitChoices = { "customary": [ "inches", "feet", + "yards", "miles", + "nauticalMiles", ], "relative": [ "humans", @@ -340,7 +352,8 @@ const unitChoices = { "points", "smoots", "furlongs", - "HUs" + "HUs", + "fathoms", ] }, area: {