Unit of Measure
Functions to manipulate measures
Supported units
All available units are listed, grouped by dimension
Symbol | Name |
---|---|
m/s² |
meter per square second |
cm/s² |
centimeter per square second |
Symbol | Name |
---|---|
Tmol |
teramole |
Gmol |
gigamole |
Mmol |
megamole |
mymol |
myriamole |
kmol |
kilomole |
hmol |
hectomole |
damol |
dekamole |
mol |
mole |
dmol |
decimole |
cmol |
centimole |
mmol |
millimole |
µmol |
micromole |
nmol |
nanomole |
pmol |
picomole |
fmol |
femtomole |
amol |
attomole |
Symbol | Name |
---|---|
kat |
katal |
Tmol/s |
teramole per second |
Tmol/min |
teramole per minute |
Tmol/h |
teramole per hour |
Tmol/day |
teramole per day |
Gmol/s |
gigamole per second |
Gmol/min |
gigamole per minute |
Gmol/h |
gigamole per hour |
Gmol/day |
gigamole per day |
Mmol/s |
megamole per second |
Mmol/min |
megamole per minute |
Mmol/h |
megamole per hour |
Mmol/day |
megamole per day |
mymol/s |
myriamole per second |
mymol/min |
myriamole per minute |
mymol/h |
myriamole per hour |
mymol/day |
myriamole per day |
kmol/s |
kilomole per second |
kmol/min |
kilomole per minute |
kmol/h |
kilomole per hour |
kmol/day |
kilomole per day |
hmol/s |
hectomole per second |
hmol/min |
hectomole per minute |
hmol/h |
hectomole per hour |
hmol/day |
hectomole per day |
damol/s |
dekamole per second |
damol/min |
dekamole per minute |
damol/h |
dekamole per hour |
damol/day |
dekamole per day |
mol/s |
mole per second |
mol/min |
mole per minute |
mol/h |
mole per hour |
mol/day |
mole per day |
dmol/s |
decimole per second |
dmol/min |
decimole per minute |
dmol/h |
decimole per hour |
dmol/day |
decimole per day |
cmol/s |
centimole per second |
cmol/min |
centimole per minute |
cmol/h |
centimole per hour |
cmol/day |
centimole per day |
mmol/s |
millimole per second |
mmol/min |
millimole per minute |
mmol/h |
millimole per hour |
mmol/day |
millimole per day |
µmol/s |
micromole per second |
µmol/min |
micromole per minute |
µmol/h |
micromole per hour |
µmol/day |
micromole per day |
nmol/s |
nanomole per second |
nmol/min |
nanomole per minute |
nmol/h |
nanomole per hour |
nmol/day |
nanomole per day |
pmol/s |
picomole per second |
pmol/min |
picomole per minute |
pmol/h |
picomole per hour |
pmol/day |
picomole per day |
fmol/s |
femtomole per second |
fmol/min |
femtomole per minute |
fmol/h |
femtomole per hour |
fmol/day |
femtomole per day |
amol/s |
attomole per second |
amol/min |
attomole per minute |
amol/h |
attomole per hour |
amol/day |
attomole per day |
Symbol | Name |
---|---|
m² |
square meter |
sft |
foot square |
Symbol | Name |
---|---|
kg/m² |
kilogram per square meter |
Symbol | Name |
---|---|
Tmol/mL |
teramole per milliliter |
Tmol/cL |
teramole per centiliter |
Tmol/dL |
teramole per deciliter |
Tmol/L |
teramole per liter |
Gmol/mL |
gigamole per milliliter |
Gmol/cL |
gigamole per centiliter |
Gmol/dL |
gigamole per deciliter |
Gmol/L |
gigamole per liter |
Mmol/mL |
megamole per milliliter |
Mmol/cL |
megamole per centiliter |
Mmol/dL |
megamole per deciliter |
Mmol/L |
megamole per liter |
mymol/mL |
myriamole per milliliter |
mymol/cL |
myriamole per centiliter |
mymol/dL |
myriamole per deciliter |
mymol/L |
myriamole per liter |
kmol/mL |
kilomole per milliliter |
kmol/cL |
kilomole per centiliter |
kmol/dL |
kilomole per deciliter |
kmol/L |
kilomole per liter |
hmol/mL |
hectomole per milliliter |
hmol/cL |
hectomole per centiliter |
hmol/dL |
hectomole per deciliter |
hmol/L |
hectomole per liter |
damol/mL |
dekamole per milliliter |
damol/cL |
dekamole per centiliter |
damol/dL |
dekamole per deciliter |
damol/L |
dekamole per liter |
mol/mL |
mole per milliliter |
mol/cL |
mole per centiliter |
mol/dL |
mole per deciliter |
mol/L |
mole per liter |
dmol/mL |
decimole per milliliter |
dmol/cL |
decimole per centiliter |
dmol/dL |
decimole per deciliter |
dmol/L |
decimole per liter |
cmol/mL |
centimole per milliliter |
cmol/cL |
centimole per centiliter |
cmol/dL |
centimole per deciliter |
cmol/L |
centimole per liter |
mmol/mL |
millimole per milliliter |
mmol/cL |
millimole per centiliter |
mmol/dL |
millimole per deciliter |
mmol/L |
millimole per liter |
µmol/mL |
micromole per milliliter |
µmol/cL |
micromole per centiliter |
µmol/dL |
micromole per deciliter |
µmol/L |
micromole per liter |
nmol/mL |
nanomole per milliliter |
nmol/cL |
nanomole per centiliter |
nmol/dL |
nanomole per deciliter |
nmol/L |
nanomole per liter |
pmol/mL |
picomole per milliliter |
pmol/cL |
picomole per centiliter |
pmol/dL |
picomole per deciliter |
pmol/L |
picomole per liter |
fmol/mL |
femtomole per milliliter |
fmol/cL |
femtomole per centiliter |
fmol/dL |
femtomole per deciliter |
fmol/L |
femtomole per liter |
amol/mL |
attomole per milliliter |
amol/cL |
attomole per centiliter |
amol/dL |
attomole per deciliter |
amol/L |
attomole per liter |
Symbol | Name |
---|---|
Tg/mL |
teragram per milliliter |
Tg/cL |
teragram per centiliter |
Tg/dL |
teragram per deciliter |
Tg/L |
teragram per liter |
Gg/mL |
gigagram per milliliter |
Gg/cL |
gigagram per centiliter |
Gg/dL |
gigagram per deciliter |
Gg/L |
gigagram per liter |
t/mL |
megagram per milliliter |
t/cL |
megagram per centiliter |
t/dL |
megagram per deciliter |
t/L |
megagram per liter |
myg/mL |
myriagram per milliliter |
myg/cL |
myriagram per centiliter |
myg/dL |
myriagram per deciliter |
myg/L |
myriagram per liter |
kg/mL |
kilogram per milliliter |
kg/cL |
kilogram per centiliter |
kg/dL |
kilogram per deciliter |
kg/L |
kilogram per liter |
hg/mL |
hectogram per milliliter |
hg/cL |
hectogram per centiliter |
hg/dL |
hectogram per deciliter |
hg/L |
hectogram per liter |
dag/mL |
dekagram per milliliter |
dag/cL |
dekagram per centiliter |
dag/dL |
dekagram per deciliter |
dag/L |
dekagram per liter |
g/mL |
gram per milliliter |
g/cL |
gram per centiliter |
g/dL |
gram per deciliter |
g/L |
gram per liter |
dg/mL |
decigram per milliliter |
dg/cL |
decigram per centiliter |
dg/dL |
decigram per deciliter |
dg/L |
decigram per liter |
cg/mL |
centigram per milliliter |
cg/cL |
centigram per centiliter |
cg/dL |
centigram per deciliter |
cg/L |
centigram per liter |
mg/mL |
milligram per milliliter |
mg/cL |
milligram per centiliter |
mg/dL |
milligram per deciliter |
mg/L |
milligram per liter |
µg/mL |
microgram per milliliter |
µg/cL |
microgram per centiliter |
µg/dL |
microgram per deciliter |
µg/L |
microgram per liter |
ng/mL |
nanogram per milliliter |
ng/cL |
nanogram per centiliter |
ng/dL |
nanogram per deciliter |
ng/L |
nanogram per liter |
pg/mL |
picogram per milliliter |
pg/cL |
picogram per centiliter |
pg/dL |
picogram per deciliter |
pg/L |
picogram per liter |
fg/mL |
femtogram per milliliter |
fg/cL |
femtogram per centiliter |
fg/dL |
femtogram per deciliter |
fg/L |
femtogram per liter |
ag/mL |
attogram per milliliter |
ag/cL |
attogram per centiliter |
ag/dL |
attogram per deciliter |
ag/L |
attogram per liter |
Symbol | Name |
---|---|
J |
joule |
cal |
calorie |
kcal |
kilocalorie |
Symbol | Name |
---|---|
N |
newton |
Symbol | Name |
---|---|
kg·m/s |
kilogram·meter per second |
Symbol | Name |
---|---|
m²/s |
square meter per second |
Symbol | Name |
---|---|
ft |
foot |
ft_survey_us |
us survey foot |
in |
inch |
ly |
light year |
mi |
mile |
nmi |
nautical mile |
yd |
yard |
Tm |
terameter |
Gm |
gigameter |
Mm |
megameter |
mym |
myriameter |
km |
kilometer |
hm |
hectometer |
dam |
dekameter |
m |
metre |
dm |
decimeter |
cm |
centimeter |
mm |
millimeter |
µm |
micrometer |
nm |
nanometer |
pm |
picometer |
fm |
femtometer |
am |
attometer |
Symbol | Name |
---|---|
lb |
pound |
oz |
ounce |
ton_us |
ton (us) |
u |
unified atomic mass |
Tg |
teragram |
Gg |
gigagram |
Mg |
megagram |
myg |
myriagram |
kg |
kilogram |
hg |
hectogram |
dag |
dekagram |
g |
gram |
dg |
decigram |
cg |
centigram |
mg |
milligram |
µg |
microgram |
ng |
nanogram |
pg |
picogram |
fg |
femtogram |
ag |
attogram |
Symbol | Name |
---|---|
kg/s |
kilogram per second |
Tg/s |
teragram per second |
Tg/min |
teragram per minute |
Tg/h |
teragram per hour |
Tg/day |
teragram per day |
Gg/s |
gigagram per second |
Gg/min |
gigagram per minute |
Gg/h |
gigagram per hour |
Gg/day |
gigagram per day |
t/s |
megagram per second |
t/min |
megagram per minute |
t/h |
megagram per hour |
t/day |
megagram per day |
myg/s |
myriagram per second |
myg/min |
myriagram per minute |
myg/h |
myriagram per hour |
myg/day |
myriagram per day |
kg/min |
kilogram per minute |
kg/h |
kilogram per hour |
kg/day |
kilogram per day |
hg/s |
hectogram per second |
hg/min |
hectogram per minute |
hg/h |
hectogram per hour |
hg/day |
hectogram per day |
dag/s |
dekagram per second |
dag/min |
dekagram per minute |
dag/h |
dekagram per hour |
dag/day |
dekagram per day |
g/s |
gram per second |
g/min |
gram per minute |
g/h |
gram per hour |
g/day |
gram per day |
dg/s |
decigram per second |
dg/min |
decigram per minute |
dg/h |
decigram per hour |
dg/day |
decigram per day |
cg/s |
centigram per second |
cg/min |
centigram per minute |
cg/h |
centigram per hour |
cg/day |
centigram per day |
mg/s |
milligram per second |
mg/min |
milligram per minute |
mg/h |
milligram per hour |
mg/day |
milligram per day |
µg/s |
microgram per second |
µg/min |
microgram per minute |
µg/h |
microgram per hour |
µg/day |
microgram per day |
ng/s |
nanogram per second |
ng/min |
nanogram per minute |
ng/h |
nanogram per hour |
ng/day |
nanogram per day |
pg/s |
picogram per second |
pg/min |
picogram per minute |
pg/h |
picogram per hour |
pg/day |
picogram per day |
fg/s |
femtogram per second |
fg/min |
femtogram per minute |
fg/h |
femtogram per hour |
fg/day |
femtogram per day |
ag/s |
attogram per second |
ag/min |
attogram per minute |
ag/h |
attogram per hour |
ag/day |
attogram per day |
Symbol | Name |
---|---|
Bq |
becquerel |
Symbol | Name |
---|---|
ft/s |
feet per second |
km/h |
kilometer per hour |
kn |
knot |
m/s |
meter per second |
mph |
mile per hour |
m·s |
meter·second |
Symbol | Name |
---|---|
K |
kelvin |
°F |
fahrenheit |
°R |
rankine |
℃ |
celsius |
Symbol | Name |
---|---|
d |
day |
h |
hour |
min |
minute |
mo |
month |
s |
second |
wk |
week |
y |
year |
Time conversion between different units of measure could provide an approximation, depending on what units are involved in. If a year is converted to days, it will return 365.24. |
Symbol | Name |
---|---|
Tbsp |
tablespoon |
ac ft |
acre-foot |
bbl |
barrel |
cup |
cup |
fl dr |
fluid dram |
fl oz |
fluid ounze |
ft³ |
cubic foot |
gal |
us gallon |
gal_dry_us |
us dry gallon |
in³ |
cubic inch |
liq.gi |
liquid gill |
min_us |
minim |
pt |
pint |
tsp |
teaspoon |
㎥ |
cubic meter |
TL |
teraliter |
GL |
gigaliter |
ML |
megaliter |
myL |
myrialiter |
kL |
kiloliter |
hL |
hectoliter |
daL |
dekaliter |
l |
litre |
dL |
deciliter |
cL |
centiliter |
mL |
milliliter |
µL |
microliter |
nL |
nanoliter |
pL |
picoliter |
fL |
femtoliter |
aL |
attoliter |
convert(value, source unit, target unit)
Convert between units of measure and return a measure
Name | Required | Type | Description |
---|---|---|---|
value |
Yes |
Number |
The value to be converted |
source unit |
Yes |
Text |
Source unit of measure symbol or name |
target unit |
Yes |
Text |
Target unit of measure symbol or name |
unit of measure.convert(6, "ft", "m") => "{\"unit\": \"m\", \"value\": 1.8288}"
convert(measure, unit)
Convert between units of measure and return a measure
Name | Required | Type | Description |
---|---|---|---|
measure |
Yes |
Source unit of measure |
|
unit |
Yes |
Text |
Target unit of measure symbol or name |
unit of measure.convert(measure(30, "celsius"), "fahrenheit") => "{\"unit\": \"°F\", \"value\": 86}"
unit of measure.convert(measure(30, "℃"), "fahrenheit") => "{\"unit\": \"°F\", \"value\": 86}"
unit of measure.convert(measure(90, "mile per hour"), "km/h") => "{\"unit\": \"km/h\", \"value\": 144.84096}"
unit of measure.convert(measure(6, "ft"), "m") => "{\"unit\": \"m\", \"value\": 1.8288}"
convert molecular mass(value, source unit, target unit, molecular mass)
Convert between amount of substance units of measure and mass units of measure and return a measure (molecular mass is always expressed in g/mol)
Name | Required | Type | Description |
---|---|---|---|
value |
Yes |
Number |
The value to be converted |
source unit |
Yes |
Text |
Source unit of measure symbol or name |
target unit |
Yes |
Text |
Target unit of measure symbol or name |
molecular mass |
Yes |
Number |
The molecular mass (e.g. 151.163 for Acetaminophen) |
unit of measure.convert molecular mass(2, "µmol/L", "µg/mL", 151.163) => "{\"unit\": \"µg/mL\", \"value\": 0.302326}"
format with name(value, unit)
Create human readable version of the unit with name
Name | Required | Type | Description |
---|---|---|---|
value |
Yes |
Number |
The value |
unit |
Yes |
Text |
Unit of measure symbol or name |
Text |
unit of measure.format with name(30, "°F") => "30 Fahrenheit"
unit of measure.format with name(null, "°F") => "null"
format with name(measure)
Create human readable version of the unit with name
Name | Required | Type | Description |
---|---|---|---|
measure |
Yes |
Unit of measure |
Text |
unit of measure.format with name(measure(30, "°F")) => "30 Fahrenheit"
unit of measure.format with name(measure(30, null)) => "null"
format with symbol(value, unit)
Create human readable version of the unit with symbol
Name | Required | Type | Description |
---|---|---|---|
value |
Yes |
Number |
The value |
unit |
Yes |
Text |
Unit of measure name or symbol |
Text |
unit of measure.format with symbol(30, "fahrenheit") => "30°F"
format with symbol(measure)
Create human readable version of the unit with symbol
Name | Required | Type | Description |
---|---|---|---|
measure |
Yes |
Measure |
Unit of measure |
Text |
unit of measure.format with symbol(measure(30, "fahrenheit")) => "30°F"
is convertible(measure, unit)
Allows to verify if given two units of measure can be converted
Name | Required | Type | Description |
---|---|---|---|
measure |
Yes |
Source unit of measure |
|
unit |
Yes |
Text |
Target unit of measure |
Boolean |
unit of measure.is convertible(measure(10, "km/h"), "mile per hour") => "true"
is convertible(source unit, target unit)
Allows to verify if given two units of measure can be converted
Name | Required | Type | Description |
---|---|---|---|
source unit |
Yes |
Text |
Source measure name or symbol |
target unit |
Yes |
Text |
Target measure name or symbol |
Boolean |
unit of measure.is convertible("celsius", "kelvin") => "true"
unit of measure.is convertible("kg", "g") => "true"
unit of measure.is convertible("foot", "m") => "true"
unit of measure.is convertible("mol", "g") => "false"
unit of measure.is convertible("km/h", "mile per hour") => "true"
measure(value, unit)
Create a measure (a string can be passed as argument, formatted as value and unit, e.g. '10 Kilogram')
Name | Required | Type | Description |
---|---|---|---|
value |
Yes |
Number |
The value |
unit |
Yes |
Text |
Unit of measure symbol or name |
unit of measure.measure(30, "Fahrenheit") => "{\"unit\": \"°F\", \"value\": 30}"
measure(string)
Create a measure (a string can be passed as argument, formatted as value and unit, e.g. '10 Kilogram')
Name | Required | Type | Description |
---|---|---|---|
string |
Yes |
Text |
Unit of measure and its value |
unit of measure.measure("30 Fahrenheit") => "{\"unit\": \"°F\", \"value\": 30}"