From 49a19cad3b53c3a9939a288ce2a3f747c0a3fd38 Mon Sep 17 00:00:00 2001 From: Carl Osterwisch Date: Wed, 30 Aug 2023 05:04:38 -0400 Subject: [PATCH] Energy prefixes (#3019) * Enable short and long prefixes for the erg unit of energy * Use long prefixes instead of short for the joule unit of energy --------- Co-authored-by: Jos de Jong --- src/type/unit/Unit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/type/unit/Unit.js b/src/type/unit/Unit.js index 28fff3de2..950e22b74 100644 --- a/src/type/unit/Unit.js +++ b/src/type/unit/Unit.js @@ -2452,14 +2452,14 @@ export const createUnitClass = /* #__PURE__ */ factory(name, dependencies, ({ joule: { name: 'joule', base: BASE_UNITS.ENERGY, - prefixes: PREFIXES.SHORT, + prefixes: PREFIXES.LONG, value: 1, offset: 0 }, erg: { name: 'erg', base: BASE_UNITS.ENERGY, - prefixes: PREFIXES.NONE, + prefixes: PREFIXES.SHORTLONG, // Both kiloerg and kerg are acceptable value: 1e-7, offset: 0 },