-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(units): add/update units, aliases
- Loading branch information
1 parent
c7dda99
commit 850e604
Showing
6 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defUnit, dimensionless } from "./unit.js"; | ||
|
||
export const percent = defUnit("%", "percent", dimensionless(1e-2)); | ||
export const permille = defUnit("‰", "permille", dimensionless(1e-3)); | ||
export const permyriad = defUnit("‱", "permyriad", dimensionless(1e-4)); | ||
export const pcm = defUnit("pcm", "part per cent mille", dimensionless(1e-5)); | ||
export const ppm = defUnit("ppm", "part per million", dimensionless(1e-6)); | ||
export const ppb = defUnit("ppb", "part per billion", dimensionless(1e-9)); | ||
export const ppt = defUnit("ppt", "part per trillion", dimensionless(1e-12)); |