Skip to content

Commit 49a19ca

Browse files
costerwijosdejong
andauthored
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 <[email protected]>
1 parent 7e35dad commit 49a19ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type/unit/Unit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,14 +2452,14 @@ export const createUnitClass = /* #__PURE__ */ factory(name, dependencies, ({
24522452
joule: {
24532453
name: 'joule',
24542454
base: BASE_UNITS.ENERGY,
2455-
prefixes: PREFIXES.SHORT,
2455+
prefixes: PREFIXES.LONG,
24562456
value: 1,
24572457
offset: 0
24582458
},
24592459
erg: {
24602460
name: 'erg',
24612461
base: BASE_UNITS.ENERGY,
2462-
prefixes: PREFIXES.NONE,
2462+
prefixes: PREFIXES.SHORTLONG, // Both kiloerg and kerg are acceptable
24632463
value: 1e-7,
24642464
offset: 0
24652465
},

0 commit comments

Comments
 (0)