quantities library

Extensions

NumToQuantity on num

Constants

centi → const UnitPrefix
deci → const UnitPrefix
kilo → const UnitPrefix
micro → const UnitPrefix
milli → const UnitPrefix
nano → const UnitPrefix

Properties

ampere → NonDerivedUnit
Base unit of electric current.
final
bar → NonDerivedUnit
Unit of pressure, 1 bar = 100,000 Pa.
final
cmH2O → NonDerivedUnit
Unit of pressure, 1 cmH₂O = 98.0665 Pa.
final
coulomb → NonDerivedUnit
Unit of electric charge, 1 C = 1 A * s.
final
day → NonDerivedUnit
Unit of time, 1 d = 24 h.
final
gram → NonDerivedUnit
Base unit of mass (note that the kilogram is the standard unit of mass in SI, NOT the gram).
final
hour → NonDerivedUnit
Unit of time, 1 hr = 3,600 s.
final
inch → NonDerivedUnit
Unit of length, 1 in. = 0.0254 m.
final
kelvin → NonDerivedUnit
Base unit of temperature.
final
liter → NonDerivedUnit
Unit of volume, 1 L = 0.001 m^3.
final
meter → NonDerivedUnit
Base unit of length.
final
minute → NonDerivedUnit
Unit of time, 1 min = 60 s.
final
mmHg → NonDerivedUnit
Unit of pressure, 1 mmHg = 133.322387415 Pa.
final
mole → NonDerivedUnit
Base unit for amount of substance.
final
month → NonDerivedUnit
Unit of time, 1 mo = 30.436875 d.
final
newton → NonDerivedUnit
Unit of force, 1 N = 1 kg * m / s^2.
final
pascal → NonDerivedUnit
Unit of pressure, 1 Pa = 1 N / m^2.
final
percent → NonDerivedUnit
Dimensionless unit, 1% = 1/100.
final
pound → NonDerivedUnit
Unit of mass, 1 lb = 453.59237 g.
final
second → NonDerivedUnit
Base unit of time.
final
squareMeter Unit
Unit of area.
final
standardAtmosphere → NonDerivedUnit
Unit of pressure, 1 atm = 101,325 Pa.
final
week → NonDerivedUnit
Unit of time, 1 wk = 7 d.
final
year → NonDerivedUnit
Unit of time, 1 yr = 12 mo.
final