Standard unit library#

Module rules#

Conversion factors#

No unit is declared in more than one module with a different conversion factor.

grain in units.avoirdupois and units.troy resolves to one numeric value. Importing it from both is refused.

(Spec: [LUNI.16.1])

Imperial and customary#

units.imperial is UK imperial and units.customary is US customary.

Gallon, pint, fluid ounce, hundredweight and ton differ in value between them. units.imperial has no length units: units.customary provides inch, foot, yard and mile for both.

(Spec: [LUNI.16.1], [LUNI.16.2], [LUNI.16.3])

Duplicate names#

Import order never chooses between two units. A name two modules declare is reached in each by qualified access: avoirdupois.grain, troy.grain.

(Spec: [LUNI.16.1])

Import statements#

Each library takes its own import statement. No module re-exports another’s declarations.

(Spec: [LUNI.16.1], [LUNI.16.3])

Modules#

Unit modules#

Module

Contents

units.si

SI base, prefixed forms and derived units

units.metric

litre, tonne, bar, eV and others

units.customary

US: inch, foot, mile, lb, psi, liquid and dry measure

units.imperial

UK: stone, long ton, UK gallon

units.avoirdupois

grain, oz, lb, short and long ton

units.troy

troy oz, troy lb, pennyweight

units.electrical

gauss, maxwell

units.chemistry

molar, pH, ppm, ppb

units.audio

dB family, dBm and watt, MIDI and Hz, sone, phon

units.nautical

nautical mile, knot, fathom

units.time

week, fortnight, year variants

units.physics

torque, rpm, viscosity, CGS legacy

units.astro

ly, pc, jansky, solar mass

units.computer

data, data_rate, baud, energy_per_bit, request_rate, transaction_rate, query_rate

The catalogue lists every unit.

(Spec: [LUNI.15.2], [LUNI.16.2])

Non-affine units and formulas#

units.audio formulas#

Name

Between

Form

dBm_watt, implicit

dBm, watt

10 ** (x / 10) / 1000; 10 * log10(1000 * x)

midi_hz

midi_note, Hz

440 * 2 ** ((x - 69) / 12); 69 + 12 * log2(x / 440)

phon is a tier-2 unit of loudness, over the base sone, with to_base 2 ** ((x - 40) / 10) and from_base 10 * log2(x) + 40.

(Spec: [LUNI.16.2])

units.chemistry pH#

pH is a tier-2 unit of acidity, over the base molar_h, with to_base 10 ** -x and from_base -log10(x).

(Spec: [LUNI.16.2])

units.computer formula#

energy_per_flop and compute_efficiency are joined by an inverting formula pair.

(Spec: [LUNI.16.2])

units.computer rates#

request_rate, transaction_rate and query_rate are three dimensions, each distinct from the others and from those of Hz and Bq.

Their bases are requests_per_second, transactions_per_second and queries_per_second. Values of two of them meet as different dimensions.

Refused with DS_VALIDATE_DIM_MISMATCH

from units.computer import transactions_per_second, queries_per_second
r.level::transactions_per_second + 5_queries_per_second

(Spec: [LUNI.16.2], Source: stdlib/units/computer.ds)

Catalogue#

Unit catalogue#

In Conversion, x is the value in the row’s unit, and the result is in the dimension’s base. base marks a unit declared with no =.

Module

Unit

Dimension

Conversion

Label

Aliases

units.astro

light_year

length

x * 9_460_730_472_580_800

ly

ly

units.astro

parsec

length

x * 3.085677581491367e16

pc

pc

units.astro

kiloparsec

length

x * 3.085677581491367e19

kpc

kpc

units.astro

milliarcsecond

angle

x * pi / 648_000_000

mas

mas

units.astro

microarcsecond

angle

x * pi / 648_000_000_000

µas

µas, uas

units.astro

solar_mass

stellar_mass

base

M☉

units.astro

earth_mass

stellar_mass

x * 3.00274e-6

M⊕

units.astro

jupiter_mass

stellar_mass

x * 9.54792e-4

MJ

units.astro

lunar_mass

stellar_mass

x * 3.69396e-8

M☾

units.astro

jansky

spectral_flux

base

Jy

Jy

units.astro

millijansky

spectral_flux

x / 1000

mJy

mJy

units.astro

microjansky

spectral_flux

x / 1_000_000

µJy

µJy, uJy

units.astro

kilojansky

spectral_flux

x * 1000

kJy

kJy

units.astro

watt_per_meter_squared_hz

spectral_flux

x * 1e26

W·m⁻²·Hz⁻¹

units.audio

dBm

power_db

base

dBm

units.audio

dBW

power_db

x + 30

dBW

units.audio

dBk

power_db

x + 60

dBk

units.audio

dBf

power_db

x - 120

dBf

units.audio

dBu

voltage_db

base

dBu

units.audio

dBV

voltage_db

x + 2.218

dBV

units.audio

dB

generic_db

base

generic decibel

units.audio

dBFS

full_scale_db

base

dB relative to full scale

units.audio

dBc

carrier_db

base

dB relative to carrier

units.audio

dBSPL

spl_db

base

dB SPL (re 20 µPa)

units.audio

dBi

antenna_gain_db

base

dBi antenna gain

units.audio

sone

loudness

base

sone

units.audio

phon

loudness

to_base: 2.0 ** ((x - 40.0) / 10.0); from_base: 10.0 * log2(x) + 40.0

phon

units.audio

midi_note

pitch

base

MIDI note

units.avoirdupois

grain

mass

x * 64.79891e-6

gr

units.avoirdupois

dram

mass

x * 1.7718451953125e-3

dr

units.avoirdupois

ounce

mass

x * 28.349523125e-3

oz

oz

units.avoirdupois

pound

mass

x * 453.59237e-3

lb

lb

units.avoirdupois

short_hundredweight

mass

x * 45.359237

cwt

units.avoirdupois

long_hundredweight

mass

x * 50.80234544

cwt_uk

units.avoirdupois

short_ton

mass

x * 907.18474

tn

units.avoirdupois

long_ton

mass

x * 1016.0469088

tn_uk

units.chemistry

molar

molarity

base

M

M

units.chemistry

millimolar

molarity

x / 1000

mM

mM

units.chemistry

micromolar

molarity

x / 1_000_000

µM

µM, uM

units.chemistry

nanomolar

molarity

x / 1_000_000_000

nM

nM

units.chemistry

molar_h

acidity

base

mol/L [H⁺]

units.chemistry

pH

acidity

to_base: 10.0 ** (-x); from_base: -log10(x)

pH

units.chemistry

ppm

proportion

x / 1_000_000

ppm

units.chemistry

ppb

proportion

x / 1_000_000_000

ppb

units.chemistry

ppt

proportion

x / 1_000_000_000_000

ppt

units.computer

bit

data

base

bit

b

units.computer

nibble

data

x * 4

nibble

units.computer

byte

data

x * 8

byte

B

units.computer

kibibyte

data

x * 8_192

KiB

KiB

units.computer

mebibyte

data

x * 8_388_608

MiB

MiB

units.computer

gibibyte

data

x * 8_589_934_592

GiB

GiB

units.computer

tebibyte

data

x * 8_796_093_022_208

TiB

TiB

units.computer

pebibyte

data

x * 9_007_199_254_740_992

PiB

PiB

units.computer

kibibit

data

x * 1_024

Kib

Kib

units.computer

mebibit

data

x * 1_048_576

Mib

Mib

units.computer

gibibit

data

x * 1_073_741_824

Gib

Gib

units.computer

tebibit

data

x * 1_099_511_627_776

Tib

Tib

units.computer

kilobyte

data

x * 8_000

kB

kB

units.computer

megabyte

data

x * 8_000_000

MB

MB

units.computer

gigabyte

data

x * 8_000_000_000

GB

GB

units.computer

terabyte

data

x * 8_000_000_000_000

TB

TB

units.computer

petabyte

data

x * 8_000_000_000_000_000

PB

PB

units.computer

kilobit

data

x * 1_000

kb

kb

units.computer

megabit

data

x * 1_000_000

Mb

Mb

units.computer

gigabit

data

x * 1_000_000_000

Gb

Gb

units.computer

terabit

data

x * 1_000_000_000_000

Tb

Tb

units.computer

bit_per_second

data_rate

base

bps

bps

units.computer

kilobit_per_second

data_rate

x * 1_000

kbps

kbps

units.computer

megabit_per_second

data_rate

x * 1_000_000

Mbps

Mbps

units.computer

gigabit_per_second

data_rate

x * 1_000_000_000

Gbps

Gbps

units.computer

terabit_per_second

data_rate

x * 1_000_000_000_000

Tbps

Tbps

units.computer

byte_per_second

data_rate

x * 8

Bps

Bps

units.computer

kilobyte_per_second

data_rate

x * 8_000

kBps

kBps

units.computer

megabyte_per_second

data_rate

x * 8_000_000

MBps

MBps

units.computer

gigabyte_per_second

data_rate

x * 8_000_000_000

GBps

GBps

units.computer

baud

symbol_rate

base

Bd

Bd

units.computer

kilobaud

symbol_rate

x * 1_000

kBd

kBd

units.computer

megabaud

symbol_rate

x * 1_000_000

MBd

MBd

units.computer

gigabaud

symbol_rate

x * 1_000_000_000

GBd

GBd

units.computer

light_nanosecond

length

x * 0.299792458

lt-ns

units.computer

light_picosecond

length

x * 0.000299792458

lt-ps

units.computer

joule_per_bit

energy_per_bit

base

J/bit

units.computer

millijoule_per_bit

energy_per_bit

x / 1_000

mJ/bit

units.computer

microjoule_per_bit

energy_per_bit

x / 1_000_000

µJ/bit

µJ_per_bit, uJ_per_bit

units.computer

nanojoule_per_bit

energy_per_bit

x / 1_000_000_000

nJ/bit

nJ_per_bit

units.computer

picojoule_per_bit

energy_per_bit

x / 1_000_000_000_000

pJ/bit

pJ_per_bit

units.computer

joule_per_flop

energy_per_flop

base

J/FLOP

units.computer

millijoule_per_flop

energy_per_flop

x / 1_000

mJ/FLOP

units.computer

microjoule_per_flop

energy_per_flop

x / 1_000_000

µJ/FLOP

µJ_per_flop, uJ_per_flop

units.computer

nanojoule_per_flop

energy_per_flop

x / 1_000_000_000

nJ/FLOP

nJ_per_flop

units.computer

picojoule_per_flop

energy_per_flop

x / 1_000_000_000_000

pJ/FLOP

pJ_per_flop

units.computer

femtojoule_per_flop

energy_per_flop

x / 1_000_000_000_000_000

fJ/FLOP

fJ_per_flop

units.computer

joule_per_mac

energy_per_mac

base

J/MAC

units.computer

microjoule_per_mac

energy_per_mac

x / 1_000_000

µJ/MAC

µJ_per_mac, uJ_per_mac

units.computer

nanojoule_per_mac

energy_per_mac

x / 1_000_000_000

nJ/MAC

nJ_per_mac

units.computer

picojoule_per_mac

energy_per_mac

x / 1_000_000_000_000

pJ/MAC

pJ_per_mac

units.computer

femtojoule_per_mac

energy_per_mac

x / 1_000_000_000_000_000

fJ/MAC

fJ_per_mac

units.computer

joule_per_instruction

energy_per_instruction

base

J/insn

units.computer

millijoule_per_instruction

energy_per_instruction

x / 1_000

mJ/insn

units.computer

microjoule_per_instruction

energy_per_instruction

x / 1_000_000

µJ/insn

µJ_per_insn, uJ_per_insn

units.computer

nanojoule_per_instruction

energy_per_instruction

x / 1_000_000_000

nJ/insn

nJ_per_insn

units.computer

picojoule_per_instruction

energy_per_instruction

x / 1_000_000_000_000

pJ/insn

pJ_per_insn

units.computer

operations_per_joule

compute_efficiency

base

ops/J

units.computer

kilo_operations_per_joule

compute_efficiency

x * 1_000

kops/J

units.computer

mega_operations_per_joule

compute_efficiency

x * 1_000_000

Mops/J

units.computer

giga_operations_per_joule

compute_efficiency

x * 1_000_000_000

Gops/J

GOPS_per_watt

units.computer

tera_operations_per_joule

compute_efficiency

x * 1_000_000_000_000

Tops/J

TOPS_per_watt

units.computer

requests_per_second

request_rate

base

req/s

rps, RPS

units.computer

transactions_per_second

transaction_rate

base

txn/s

tps, TPS

units.computer

queries_per_second

query_rate

base

qps

qps, QPS

units.computer

kilorequest_per_second

request_rate

x * 1_000

kreq/s

krps

units.computer

megarequest_per_second

request_rate

x * 1_000_000

Mreq/s

Mrps

units.core

nanosecond

time

base

ns

ns

units.core

meter

length

base

m

m

units.core

kilogram

mass

base

kg

kg

units.core

kelvin

temperature

base

K

K

units.core

ampere

current

base

A

A

units.core

mole

amount

base

mol

mol

units.core

candela

luminous_intensity

base

cd

cd

units.core

microsecond

time

x * 1_000

μs

μs, µs, us

units.core

millisecond

time

x * 1_000_000

ms

ms

units.core

second

time

x * 1_000_000_000

s

s

units.core

minute

time

x * 60_000_000_000

min

min

units.core

hour

time

x * 3_600_000_000_000

h

h

units.core

day

time

x * 86_400_000_000_000

d

d

units.customary

thou

length

x * 25.4e-6

thou

mil

units.customary

inch

length

x * 25.4e-3

in

in

units.customary

foot

length

x * 304.8e-3

ft

ft

units.customary

yard

length

x * 914.4e-3

yd

yd

units.customary

mile

length

x * 1609.344

mi

mi

units.customary

grain

mass

x * 64.79891e-6

gr

units.customary

dram

mass

x * 1.7718451953125e-3

dr

units.customary

ounce

mass

x * 28.349523125e-3

oz

oz

units.customary

pound

mass

x * 453.59237e-3

lb

lb

units.customary

short_hundredweight

mass

x * 45.359237

cwt

units.customary

short_ton

mass

x * 907.18474

tn

units.customary

fahrenheit

temperature

(x - 32) * 5/9 + 273.15

°F

°F, degF

units.customary

rankine

temperature

x * 5/9

°R

°R, degR

units.customary

fluid_ounce

volume

x * 29.5735295625e-6

fl oz

units.customary

cup

volume

x * 236.5882365e-6

cup

units.customary

pint

volume

x * 473.176473e-6

pt

pt

units.customary

quart

volume

x * 946.352946e-6

qt

qt

units.customary

gallon

volume

x * 3.785411784e-3

gal

gal

units.customary

dry_pint

volume

x * 550.6104713575e-6

dry pt

units.customary

dry_quart

volume

x * 1101.220942715e-6

dry qt

units.customary

peck

volume

x * 8810.56754172e-6

pk

units.customary

bushel

volume

x * 35242.2701669e-6

bu

bu

units.customary

psi

pressure

x * 6894.757293168

psi

units.customary

ksi

pressure

x * 6_894_757.293168

ksi

units.customary

mechanical_horsepower

power

x * 745.69987158227022

hp

hp

units.customary

miles_per_hour

velocity

x * 1609.344 / 3600

mph

mph

units.electrical

gauss

magnetic_flux_density

x * 1e-4

G

G

units.electrical

maxwell

magnetic_flux

x * 1e-8

Mx

Mx

units.electrical

electrical_horsepower

power

x * 746

hp(E)

units.imperial

stone

mass

x * 6.35029318

st

units.imperial

long_hundredweight

mass

x * 50.80234544

cwt

units.imperial

long_ton

mass

x * 1016.0469088

ton

units.imperial

imperial_fluid_ounce

volume

x * 28.4130625e-6

fl oz

units.imperial

imperial_pint

volume

x * 568.26125e-6

pt

units.imperial

imperial_quart

volume

x * 1136.5225e-6

qt

units.imperial

imperial_gallon

volume

x * 4546.09e-6

gal

units.metric

litre

volume

x / 1000

L

L, l

units.metric

decilitre

volume

x / 10_000

dL

dL

units.metric

centilitre

volume

x / 100_000

cL

cL

units.metric

millilitre

volume

x / 1_000_000

mL

mL

units.metric

microlitre

volume

x / 1_000_000_000

µL

µL, uL

units.metric

tonne

mass

x * 1000

t

t

units.metric

kilotonne

mass

x * 1_000_000

kt

kt

units.metric

megatonne

mass

x * 1_000_000_000

Mt

Mt

units.metric

hectare

area

x * 10_000

ha

ha

units.metric

are

area

x * 100

a

units.metric

bar

pressure

x * 100_000

bar

units.metric

millibar

pressure

x * 100

mbar

mbar

units.metric

microbar

pressure

x / 10

µbar

µbar, ubar

units.metric

angstrom

length

x / 10_000_000_000

Å

Å

units.metric

astronomical_unit

length

x * 149_597_870_700

au

au

units.metric

electronvolt

energy

x * 1.602176634e-19

eV

eV

units.metric

kiloelectronvolt

energy

x * 1.602176634e-16

keV

keV

units.metric

megaelectronvolt

energy

x * 1.602176634e-13

MeV

MeV

units.metric

gigaelectronvolt

energy

x * 1.602176634e-10

GeV

GeV

units.metric

teraelectronvolt

energy

x * 1.602176634e-7

TeV

TeV

units.metric

kilocalorie

energy

x * 4186.8

kcal

kcal

units.metric

calorie

energy

x * 4.1868

cal

cal

units.metric

dalton

mass

x * 1.66053906660e-27

Da

Da, u

units.metric

metric_horsepower

power

x * 735.49875

PS

PS

units.nautical

nautical_mile

length

x * 1852

nmi

nmi

units.nautical

fathom

length

x * 1.8288

ftm

units.nautical

cable

length

x * 185.2

cbl

units.nautical

nautical_league

length

x * 5556

nleague

units.nautical

knot

velocity

x * 1852 / 3600

kn

kn

units.physics

newton_meter

torque

base

N·m

units.physics

newton_centimeter

torque

x / 100

N·cm

units.physics

newton_millimeter

torque

x / 1000

N·mm

units.physics

kilonewton_meter

torque

x * 1000

kN·m

units.physics

meganewton_meter

torque

x * 1_000_000

MN·m

units.physics

millinewton_meter

torque

x / 1000

mN·m

units.physics

radian_per_second

angular_velocity

base

rad/s

units.physics

degree_per_second

angular_velocity

x * pi / 180

deg/s

units.physics

radian_per_minute

angular_velocity

x / 60

rad/min

units.physics

revolution_per_second

angular_velocity

x * 2 * pi

rps

rev_per_s

units.physics

rpm

angular_velocity

x * pi / 30

rpm

rpm

units.physics

pascal_second

dynamic_viscosity

base

Pa·s

units.physics

millipascal_second

dynamic_viscosity

x / 1000

mPa·s

units.physics

poise

dynamic_viscosity

x / 10

P

units.physics

centipoise

dynamic_viscosity

x / 1000

cP

cP

units.physics

millipoise

dynamic_viscosity

x / 10_000

mP

units.physics

meter_squared_per_second

kinematic_viscosity

base

m²/s

units.physics

centimeter_squared_per_second

kinematic_viscosity

x * 1e-4

cm²/s

units.physics

millimeter_squared_per_second

kinematic_viscosity

x * 1e-6

mm²/s

units.physics

stokes

kinematic_viscosity

x * 1e-4

St

units.physics

centistokes

kinematic_viscosity

x * 1e-6

cSt

cSt

units.physics

joule_per_kelvin

heat_capacity

base

J/K

units.physics

kilojoule_per_kelvin

heat_capacity

x * 1000

kJ/K

units.physics

calorie_per_kelvin

heat_capacity

x * 4.1868

cal/K

units.physics

joule_per_kilogram_kelvin

specific_heat

base

J/(kg·K)

units.physics

kilojoule_per_kilogram_kelvin

specific_heat

x * 1000

kJ/(kg·K)

units.physics

calorie_per_gram_kelvin

specific_heat

x * 4186.8

cal/(g·K)

units.physics

watt_per_meter_kelvin

thermal_conductivity

base

W/(m·K)

units.physics

milliwatt_per_meter_kelvin

thermal_conductivity

x / 1000

mW/(m·K)

units.physics

volt_per_meter

electric_field

base

V/m

units.physics

kilovolt_per_meter

electric_field

x * 1000

kV/m

units.physics

volt_per_centimeter

electric_field

x * 100

V/cm

units.physics

millivolt_per_meter

electric_field

x / 1000

mV/m

units.physics

coulomb_per_meter_squared

surface_charge

base

C/m²

units.physics

microcoulomb_per_meter_squared

surface_charge

x * 1e-6

µC/m²

units.physics

nanocoulomb_per_meter_squared

surface_charge

x * 1e-9

nC/m²

units.physics

curie

radioactivity

x * 3.7e10

Ci

Ci

units.physics

millicurie

radioactivity

x * 3.7e7

mCi

mCi

units.physics

microcurie

radioactivity

x * 3.7e4

µCi

µCi, uCi

units.physics

erg

energy

x * 1e-7

erg

units.physics

dyne

force

x * 1e-5

dyn

units.physics

rad_dose

absorbed_dose

x * 0.01

rad

units.si

decimeter

length

x / 10

dm

dm

units.si

centimeter

length

x / 100

cm

cm

units.si

millimeter

length

x / 1000

mm

mm

units.si

micrometer

length

x / 1_000_000

µm

µm, um

units.si

nanometer

length

x / 1_000_000_000

nm

nm

units.si

picometer

length

x / 1_000_000_000_000

pm

pm

units.si

kilometer

length

x * 1000

km

km

units.si

gram

mass

x / 1000

g

g

units.si

milligram

mass

x / 1_000_000

mg

mg

units.si

microgram

mass

x / 1_000_000_000

µg

µg, ug

units.si

celsius

temperature

x + 273.15

°C

°C, degC

units.si

milliampere

current

x / 1000

mA

mA

units.si

microampere

current

x / 1_000_000

µA

µA, uA

units.si

kiloampere

current

x * 1000

kA

kA

units.si

millicandela

luminous_intensity

x / 1000

mcd

mcd

units.si

millimole

amount

x / 1000

mmol

mmol

units.si

micromole

amount

x / 1_000_000

µmol

µmol, umol

units.si

nanomole

amount

x / 1_000_000_000

nmol

nmol

units.si

kilomole

amount

x * 1000

kmol

kmol

units.si

radian

angle

base

rad

rad

units.si

degree

angle

x * pi / 180

deg

deg, °

units.si

gradian

angle

x * pi / 200

grad

grad

units.si

turn

angle

x * 2 * pi

turn

units.si

arcminute

angle

x * pi / 10800

arcmin

arcmin, ′

units.si

arcsecond

angle

x * pi / 648000

arcsec

arcsec, ″

units.si

steradian

solid_angle

base

sr

sr

units.si

fraction

proportion

base

frac

units.si

percent

proportion

x / 100

%

pct

units.si

Hz

frequency

base

Hz

units.si

kilohertz

frequency

x * 1_000

kHz

kHz

units.si

megahertz

frequency

x * 1_000_000

MHz

MHz

units.si

gigahertz

frequency

x * 1_000_000_000

GHz

GHz

units.si

terahertz

frequency

x * 1_000_000_000_000

THz

THz

units.si

millihertz

frequency

x / 1000

mHz

mHz

units.si

becquerel

radioactivity

base

Bq

Bq

units.si

kilobecquerel

radioactivity

x * 1_000

kBq

kBq

units.si

megabecquerel

radioactivity

x * 1_000_000

MBq

MBq

units.si

gigabecquerel

radioactivity

x * 1_000_000_000

GBq

GBq

units.si

newton

force

base

N

N

units.si

kilonewton

force

x * 1000

kN

kN

units.si

meganewton

force

x * 1_000_000

MN

MN

units.si

millinewton

force

x / 1000

mN

mN

units.si

micronewton

force

x / 1_000_000

µN

µN, uN

units.si

joule

energy

base

J

J

units.si

kilojoule

energy

x * 1000

kJ

kJ

units.si

megajoule

energy

x * 1_000_000

MJ

MJ

units.si

millijoule

energy

x / 1000

mJ

mJ

units.si

microjoule

energy

x / 1_000_000

µJ

µJ, uJ

units.si

nanojoule

energy

x / 1_000_000_000

nJ

nJ

units.si

watt

power

base

W

W

units.si

kilowatt

power

x * 1000

kW

kW

units.si

megawatt

power

x * 1_000_000

MW

MW

units.si

gigawatt

power

x * 1_000_000_000

GW

GW

units.si

milliwatt

power

x / 1000

mW

mW

units.si

microwatt

power

x / 1_000_000

µW

µW, uW

units.si

nanowatt

power

x / 1_000_000_000

nW

nW

units.si

pascal

pressure

base

Pa

Pa

units.si

hectopascal

pressure

x * 100

hPa

hPa

units.si

kilopascal

pressure

x * 1000

kPa

kPa

units.si

megapascal

pressure

x * 1_000_000

MPa

MPa

units.si

gigapascal

pressure

x * 1_000_000_000

GPa

GPa

units.si

millipascal

pressure

x / 1000

mPa

mPa

units.si

volt

voltage

base

V

V

units.si

kilovolt

voltage

x * 1000

kV

kV

units.si

megavolt

voltage

x * 1_000_000

MV

MV

units.si

millivolt

voltage

x / 1000

mV

mV

units.si

microvolt

voltage

x / 1_000_000

µV

µV, uV

units.si

nanovolt

voltage

x / 1_000_000_000

nV

nV

units.si

ohm

resistance

base

Ω

Ω

units.si

kilohm

resistance

x * 1000

kΩ

kΩ

units.si

megohm

resistance

x * 1_000_000

MΩ

MΩ

units.si

milliohm

resistance

x / 1000

mΩ

mΩ

units.si

microohm

resistance

x / 1_000_000

µΩ

µΩ, uΩ

units.si

siemens

conductance

base

S

S

units.si

millisiemens

conductance

x / 1000

mS

mS

units.si

microsiemens

conductance

x / 1_000_000

µS

µS, uS

units.si

kilosiemens

conductance

x * 1000

kS

kS

units.si

farad

capacitance

base

F

F

units.si

millifarad

capacitance

x / 1000

mF

mF

units.si

microfarad

capacitance

x / 1_000_000

µF

µF, uF

units.si

nanofarad

capacitance

x / 1_000_000_000

nF

nF

units.si

picofarad

capacitance

x / 1_000_000_000_000

pF

pF

units.si

henry

inductance

base

H

H

units.si

millihenry

inductance

x / 1000

mH

mH

units.si

microhenry

inductance

x / 1_000_000

µH

µH, uH

units.si

nanohenry

inductance

x / 1_000_000_000

nH

nH

units.si

coulomb

charge

base

C

C

units.si

millicoulomb

charge

x / 1000

mC

mC

units.si

microcoulomb

charge

x / 1_000_000

µC

µC, uC

units.si

nanocoulomb

charge

x / 1_000_000_000

nC

nC

units.si

picocoulomb

charge

x / 1_000_000_000_000

pC

pC

units.si

kilocoulomb

charge

x * 1000

kC

kC

units.si

ampere_hour

charge

x * 3600

Ah

Ah

units.si

milliampere_hour

charge

x * 3.6

mAh

mAh

units.si

weber

magnetic_flux

base

Wb

Wb

units.si

milliweber

magnetic_flux

x / 1000

mWb

mWb

units.si

microweber

magnetic_flux

x / 1_000_000

µWb

µWb, uWb

units.si

tesla

magnetic_flux_density

base

T

T

units.si

millitesla

magnetic_flux_density

x / 1000

mT

mT

units.si

microtesla

magnetic_flux_density

x / 1_000_000

µT

µT, uT

units.si

nanotesla

magnetic_flux_density

x / 1_000_000_000

nT

nT

units.si

gray

absorbed_dose

base

Gy

Gy

units.si

milligray

absorbed_dose

x / 1000

mGy

mGy

units.si

microgray

absorbed_dose

x / 1_000_000

µGy

µGy, uGy

units.si

sievert

equivalent_dose

base

Sv

Sv

units.si

millisievert

equivalent_dose

x / 1000

mSv

mSv

units.si

microsievert

equivalent_dose

x / 1_000_000

µSv

µSv, uSv

units.si

lux

illuminance

base

lx

lx

units.si

kilolux

illuminance

x * 1000

klx

klx

units.si

millilux

illuminance

x / 1000

mlx

mlx

units.si

lumen

luminous_flux

base

lm

lm

units.si

kilolumen

luminous_flux

x * 1000

klm

klm

units.si

millilumen

luminous_flux

x / 1000

mlm

mlm

units.si

candela_per_meter_squared

luminance

base

cd/m²

nit

units.si

kilocandela_per_meter_squared

luminance

x * 1000

kcd/m²

kilonit

units.si

katal

catalytic_activity

base

kat

kat

units.si

millikatal

catalytic_activity

x / 1000

mkat

mkat

units.si

microkatal

catalytic_activity

x / 1_000_000

µkat

µkat, ukat

units.si

meter_squared

area

base

m²

units.si

centimeter_squared

area

x / 10_000

cm²

units.si

millimeter_squared

area

x / 1_000_000

mm²

units.si

kilometer_squared

area

x * 1_000_000

km²

units.si

meter_cubed

volume

base

m³

units.si

centimeter_cubed

volume

x / 1_000_000

cm³

units.si

millimeter_cubed

volume

x / 1_000_000_000

mm³

units.si

decimeter_cubed

volume

x / 1000

dm³

units.si

meters_per_second

velocity

base

m/s

mps

units.si

kilometers_per_hour

velocity

x / 3.6

km/h

kmh, kph

units.si

meters_per_second_squared

acceleration

base

m/s²

units.si

g_force

acceleration

x * 9.80665

gₙ

gₙ

units.time

week

time

x * 604_800_000_000_000

wk

wk

units.time

fortnight

time

x * 1_209_600_000_000_000

fn

units.time

year_julian

time

x * 31_557_600_000_000_000

yr

units.time

year_gregorian

time

x * 31_556_952_000_000_000

yr_g

units.time

year_tropical

time

x * 31_556_925_974_880_000

yr_t

units.troy

grain

mass

x * 64.79891e-6

gr

units.troy

pennyweight

mass

x * 1.55517384e-3

dwt

units.troy

troy_ounce

mass

x * 31.1034768e-3

oz t

units.troy

troy_pound

mass

x * 373.2417216e-3

lb t

(Spec: [LUNI.4.3], Source: stdlib/units)