Skip to content

Commit

Permalink
Add the units: parts per hundred thousand (pcm), million (ppm), billi…
Browse files Browse the repository at this point in the history
…on (ppb), trillion (ppt), and quadrillion (ppq) (#699)

* Add the units: parts per million, billion, trillion, and quadrillion

* Update unit names

* Apply suggestions from code review

Co-authored-by: Sebastian Stock <42280794+sostock@users.noreply.github.com>

* Add pcm

* Fix typo

---------

Co-authored-by: Sebastian Stock <42280794+sostock@users.noreply.github.com>
  • Loading branch information
eliascarv and sostock authored Nov 28, 2023
1 parent a24bc69 commit d23bbac
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pkgdefaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,26 @@ substrate per s.
\nPermyriad, a unit meaning parts per ten thousand. Printed as \"\".
\nDimension: [`Unitful.NoDims`](@ref)."
@unit pertenthousand "" Pertenthousand 1//10000 false
" Unitful.pcm
\nPercentmille, a unit meaning parts per hundred thousand.
\nDimension: [`Unitful.NoDims`](@ref)."
@unit pcm "pcm" Percentmille 1//100000 false
" Unitful.ppm
\nPermillion, a unit meaning parts per million.
\nDimension: [`Unitful.NoDims`](@ref)."
@unit ppm "ppm" Permillion 1//1000000 false
" Unitful.ppb
\nPerbillion, a unit meaning parts per billion (in the short-scale sense), i.e., 10^-9.
\nDimension: [`Unitful.NoDims`](@ref)."
@unit ppb "ppb" Perbillion 1//1000000000 false
" Unitful.ppt
\nPertrillion, a unit meaning parts per trillion (in the short-scale sense), i.e., 10^-12.
\nDimension: [`Unitful.NoDims`](@ref)."
@unit ppt "ppt" Pertrillion 1//1000000000000 false
" Unitful.ppq
\nPerquadrillion, a unit meaning parts per quadrillion (in the short-scale sense), i.e., 10^-15.
\nDimension: [`Unitful.NoDims`](@ref)."
@unit ppq "ppq" Perquadrillion 1//1000000000000000 false

# Temperature
" Unitful.°C
Expand Down

0 comments on commit d23bbac

Please sign in to comment.