Skip to content

Commit

Permalink
Energy prefixes (#3019)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
costerwi and josdejong authored Aug 30, 2023
1 parent 7e35dad commit 49a19ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/type/unit/Unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 49a19ca

Please sign in to comment.