Pre-defined units and сonstants

In the following, only non-prefixed units are listed. To get a more detailed information about a unit, and to get information about prefixed units, use Julia help, e.g.

help?> Unitful.kW
  Unitful.kW

  A prefixed unit, equal to 10^3 W.

  Dimension: 𝐋² 𝐌 𝐓⁻³

  See also: Unitful.W.

For prefixes, see below.

Base dimensions

Amount

Current

Length

Luminosity

Mass

Unitful.kg — Constant
Unitful.kg

The kilogram, the SI base unit of mass. Note that kg, not g, is the base unit.

Dimension: Unitful.𝐌.

source
Unitful.u — Constant
Unitful.u

The unified atomic mass unit, or dalton, a unit of mass defined as 1/12 the mass of an unbound neutral atom of carbon-12, equal to 1.660,539,066,60 × 10^-27 kg (the CODATA 2018 recommended value).

Dimension: Unitful.𝐌.

See Also: Unitful.kg.

source

Temperature

Unitful.𝚯 — Constant
Unitful.𝚯

A dimension representing thermodynamic temperature.

source

Time

Unitful.minute — Constant
Unitful.minute

The minute, a unit of time defined as 60 s. The full name minute is used instead of the symbol min to avoid confusion with the Julia function min.

Dimension: Unitful.𝐓.

See Also: Unitful.s.

source

Derived dimensions

Acceleration

Unitful.ge — Constant
Unitful.ge

The nominal acceleration due to gravity in a vacuum near the surface of the earth, a unit of acceleration, defined by standard to be exactly 9.806,65 m / s^2.

Unitful.gn is a quantity (with units m/s^2) whereas Unitful.ge is a unit equal to gn.

Dimension: 𝐋 𝐓^-2.

See also: Unitful.m, Unitful.s.

source

Area

Unitful.a — Constant
Unitful.a

The are, a metric unit of area, defined as 100 m^2.

Dimension: 𝐋^2.

See Also: Unitful.m.

source
Unitful.ac — Constant
Unitful.ac

The acre, a US customary unit of area defined as 4840 yd^2.

Dimension: 𝐋^2.

See Also: Unitful.yd.

source
Unitful.b — Constant
Unitful.b

The barn, a metric unit of area, defined as 100 fm^2.

Dimension: 𝐋^2.

See Also: Unitful.fm.

source
Unitful.ha — Constant
Unitful.ha

The hectare, a metric unit of area, defined as 100 a.

Dimension: 𝐋^2.

See Also: Unitful.a.

source

BField

Capacitance

Charge

DynamicViscosity

ElectricalConductance

Unitful.S — Constant
Unitful.S

The siemens, an SI unit of electrical conductance, defined as 1 Ω^-1.

Dimension: 𝐈^2 𝐓^3 𝐋^-2 𝐌^-1.

See also: Unitful.Ω

source

ElectricalResistance

Unitful.Ω — Constant
Unitful.Ω

The ohm, an SI unit of electrical resistance, defined as 1 V / A.

Dimension: 𝐋^2 𝐌 𝐈^-2 𝐓^-3.

See also: Unitful.V, Unitful.A.

source

Energy

Unitful.btu — Constant
Unitful.btu

The British thermal unit, a US customary unit of heat defined by ISO 31-4 as exactly 1055.06 J.

Dimension: 𝐋^2 𝐌 𝐓^-2.

See Also: Unitful.J.

source
Unitful.cal — Constant
Unitful.cal

The calorie, a unit of energy defined as exactly 4.184 J.

Dimension: 𝐋^2 𝐌 𝐓^-2.

See Also: Unitful.J.

source

Force

Frequency

Unitful.Bq — Constant
Unitful.Bq

The becquerel, an SI unit of radioactivity, defined as 1 nuclear decay per s.

Dimension: 𝐓^-1.

See also: Unitful.s.

source
Unitful.Hz — Constant
Unitful.Hz

The hertz, an SI unit of frequency, defined as 1 s^-1.

Dimension: 𝐓^-1.

See also: Unitful.s.

source
Unitful.Hz2π — Constant
Unitful.Hz2π

A unit for convenience in angular frequency, equal to 2π Hz.

Dimension: 𝐓^-1.

See also: Unitful.Hz.

source

HField

Unitful.Oe — Constant
Unitful.Oe

The oersted, a CGS unit of magnetic H-field strength, defined as 1000 A / (4π × m).

Dimension: 𝐈 𝐋^-1.

See also: Unitful.A, Unitful.m

source

Inductance

Unitful.H — Constant
Unitful.H

The henry, an SI unit of electrical inductance, defined as 1 J / A^2.

Dimension: 𝐋^2 𝐌 𝐈^-2 𝐓^-2.

See also: Unitful.J, Unitful.A.

source

KinematicViscosity

MagneticFlux

MolarFlow

Unitful.kat — Constant
Unitful.kat

The katal, an SI unit of catalytic activity, defined as 1 mol of catalyzed substrate per s.

Dimension: 𝐍 𝐓^-1.

See also: Unitful.mol, Unitful.s.

source

Molarity

Power

Pressure

Unitful.atm — Constant
Unitful.atm

The standard atmosphere, a unit of pressure, defined as 101,325 Pa.

Dimension: 𝐌 𝐋^-1 𝐓^-2.

See also: Unitful.Pa.

source
Unitful.bar — Constant
Unitful.bar

The bar, a metric unit of pressure, defined as 100 kPa.

Dimension: 𝐌 𝐋^-1 𝐓^-2.

See also: Unitful.kPa.

source
Unitful.Torr — Constant
Unitful.Torr

The torr, a unit of pressure, defined as 1/760 atm.

Dimension: 𝐌 𝐋^-1 𝐓^-2.

See also: Unitful.atm.

source

Velocity

Unitful.c — Constant
Unitful.c

The speed of light in a vacuum, a unit of speed, defined as exactly 2.997,924,58 × 10^8 m/s.

Unitful.c0 is a quantity (with units m/s) whereas Unitful.c is a unit equal to c0.

Dimension: 𝐋 𝐓^-1.

See also: Unitful.m, Unitful.s.

source

Voltage

Unitful.V — Constant
Unitful.V

The volt, an SI unit of electric potential, defined as 1 W / A.

Dimension: 𝐋^2 𝐌 𝐈^-1 𝐓^-3.

See also: Unitful.W, Unitful.A

source

Volume

Unitful.L — Constant
Unitful.L
Unitful.l

The liter, a metric unit of volume, defined as 1000 cm^3.

Dimension: 𝐋^3.

See Also: Unitful.cm.

source

Dimensionless units

Unitful.ppq — Constant
Unitful.ppq

Perquadrillion, a unit meaning parts per quadrillion (in the short-scale sense), i.e., 10^-15.

Dimension: Unitful.NoDims.

source
Unitful.ppt — Constant
Unitful.ppt

Pertrillion, a unit meaning parts per trillion (in the short-scale sense), i.e., 10^-12.

Dimension: Unitful.NoDims.

source

Logarithmic units

UnitName
dBDecibel
BBel
NpNeper
cNpCentineper
UnitReference level
dBHz1Hz
dBm1mW
dBV1V
dBusqrt(0.6)V
dBμV1μV
dBSPL20μPa
dBFSRootPowerRatio(1)
dBΩ1Ω
dBS1S

Physical constants

Unitful.c0 — Constant
Unitful.c0

A quantity representing the speed of light in a vacuum, defined as exactly 2.997,924,58 × 10^8 m/s.

Unitful.c0 is a quantity (with units m/s) whereas Unitful.c is a unit equal to c0.

Dimension: 𝐋 𝐓^-1.

See also: Unitful.m, Unitful.s.

source
Unitful.G — Constant
Unitful.G

A quantity representing the universal gravitational constant, equal to 6.674,30 × 10^-11 m^3 / (kg × s^2) (the CODATA 2018 recommended value).

Dimension: 𝐋^3 𝐌^-1 𝐓^-2.

See also: Unitful.m, Unitful.kg, Unitful.s.

source
Unitful.gn — Constant
Unitful.gn

A quantity representing the nominal acceleration due to gravity in a vacuum near the surface of the earth, defined by standard to be exactly 9.806,65 m / s^2.

Unitful.gn is a quantity (with units m/s^2) whereas Unitful.ge is a unit equal to gn.

Dimension: 𝐋 𝐓^-2.

See also: Unitful.m, Unitful.s.

source
Unitful.h — Constant
Unitful.h

A quantity representing Planck's constant, defined as exactly 6.626,070,15 × 10^-34 J × s.

Dimension: 𝐋^2 𝐌 𝐓^-1.

See also: Unitful.J, Unitful.s.

source
Unitful.k — Constant
Unitful.k

A quantity representing the Boltzmann constant, defined as exactly 1.380,649 × 10^-23 J / K.

Dimension: 𝐋^2 𝐌 𝚯^-1 𝐓^-2.

See also: Unitful.J, Unitful.K.

source
Unitful.me — Constant
Unitful.me

A quantity representing the rest mass of an electron, equal to 9.109,383,7015 × 10^-31 kg (the CODATA 2018 recommended value).

Dimension: Unitful.𝐌.

See also: Unitful.kg.

source
Unitful.mn — Constant
Unitful.mn

A quantity representing the rest mass of a neutron, equal to 1.674,927,498,04 × 10^-27 kg (the CODATA 2018 recommended value).

Dimension: Unitful.𝐌.

See also: Unitful.kg.

source
Unitful.mp — Constant
Unitful.mp

A quantity representing the rest mass of a proton, equal to 1.672,621,923,69 × 10^-27 kg (the CODATA 2018 recommended value).

Dimension: Unitful.𝐌.

See also: Unitful.kg.

source
Unitful.Na — Constant
Unitful.Na

A quantity representing Avogadro's constant, defined as exactly 6.022,140,76 × 10^23 / mol.

Dimension: 𝐍^-1.

See also: Unitful.mol.

source
Unitful.q — Constant
Unitful.q

A quantity equal to the elementary charge, the charge of a single electron, with a value of exactly 1.602,176,634 × 10^-19 C. The letter q is used instead of e to avoid confusion with Euler's number.

Dimension: 𝐈 𝐓.

See Also: Unitful.C.

source
Unitful.R — Constant
Unitful.R

A quantity representing the molar gas constant, defined as Na × k.

Dimension: 𝐋^2 𝐌 𝐍^-1 𝚯^-1 𝐓^-2.

See also: Unitful.Na, Unitful.k.

source
Unitful.R∞ — Constant
Unitful.R∞

A quantity representing the Rydberg constant, equal to 1.097,373,156,8160 × 10^-7 / m (the CODATA 2018 recommended value).

Dimension: 𝐋^-1.

See also: Unitful.m.

source
Unitful.Z0 — Constant
Unitful.Z0

A quantity representing the impedance of free space, a constant defined as μ0 × c.

Dimension: 𝐋^2 𝐌 𝐈^-2 𝐓^-3.

See also: Unitful.μ0, Unitful.c.

source
Unitful.ħ — Constant
Unitful.ħ

A quantity representing the reduced Planck constant, defined as h / 2π.

Dimension: 𝐋^2 𝐌 𝐓^-1.

See also: Unitful.h.

source
Unitful.ε0 — Constant
Unitful.ε0
Unitful.ϵ0

A quantity representing the vacuum permittivity constant, defined as 1 / (μ0 × c^2).

Dimension: 𝐈^2 𝐓^4 𝐋^-3 𝐌^-1.

See also: Unitful.μ0, Unitful.c.

source
Unitful.μ0 — Constant
Unitful.μ0

A quantity representing the vacuum permeability constant, defined as 4π × 10^-7 H / m.

Dimension: 𝐋 𝐌 𝐈^-2 𝐓^-2.

See also: Unitful.H, Unitful.m.

source
Unitful.Φ0 — Constant
Unitful.Φ0

A quantity representing the superconducting magnetic flux quantum, defined as h / (2 × q).

Dimension: 𝐋^2 𝐌 𝐈^-1 𝐓^-2.

See also: Unitful.h, Unitful.q.

source

Metric (SI) Prefixes

PrefixNamePower of Ten
yyocto-24
zzepto-21
aatto-18
ffemto-15
ppico-12
nnano-9
μmicro-6
mmilli-3
ccenti-2
ddeci-1
dadeca1
hhecto2
kkilo3
Mmega6
Ggiga9
Ttera12
Ppeta15
Eexa18
Zzetta21
Yyotta24