Overview
Apply a unit conversion to each value in a selected data stream.
Syntax
=convert([data stream], "fromUnit", "toUnit")
Example
=convert([temp_f], "f", "c")
Uses with other Expressions
You can combine =convert with other expressions. For example, a data stream could be converted to a different unit and then smoothed using the =smooth function by nesting the =convert function inside the =smooth function parameters:
=smooth(convert([speed], "mph", "kph"))
Supported Units
Temperature | Angle | Byte | Time | Length | Speed | Pressure |
Mass |
Force |
Energy |
Power |
Magnetism |
Volume |
Frequency |
Temperature
c – Celcius
f – Fahrenheit
k – Kelvin
Angle
rad – Radians
deg – Degrees
gon – Gradians
turn – Turns
Byte
b – Bytes
kb – Kilobytes
mb – Megabytes
gb – Gigabytes
tb – Terabytes
Time
ns – Nanoseconds
us – Microseconds
ms – Milliseconds
sec – Seconds
min – Minutes
hr – Hours
day – Days
Length
ang – Ångströms
nm – Nanometers
um – Micrometers
mm – Millimeters
cm – Centimeters
m – Meters
km – kilometers
nmi – Nautical Miles
mi – Miles
yd – Yards
ft – Feet
in – Inches
pica – Pica
Speed
m/s – Meters per second
kph – Kilometers per second
knot – Knots
mph – Miles per hour
mps – Miles per second
fps – Feet per second
ips – Inches per second
Pressure
torr – Torr
mmhg – Millimeters of mercury (0°C)
inhg – Inches of mercury (32°F)
pa – Pascals
hpa – Hectopascals
kpa – Kilopascals
mbar – Millibars
bar – Bars
psi – Pounds per square inch
psf – Pounds per square foot
atm – Standard atmospheres
Mass
oz – Ounces
lb – Pounds
ug – Micrograms
mg – Milligrams
cg – Centigrams
dg – Decigrams
g – Grams
kg – Kilograms
ct – Carats
ton – Tons
sg – Slugs
Force
lbf – Pounds-force
ozf – Ounces-force
nn – Nanonewton
un – Micronewton
dyn – Dyne
mn – Millinewton
cn – Centinewton
dn – Decinewton
n – Newton
kn – Kilonewton
Energy
e – Ergs
j – Joules
kj – Kilojoules
mj – Megajoules
gj – Gigajoules
ev – Electron volts
cal – Calories
kcal – Kilocalories
tn – Tons (explosive)
wh – Watt-hours
kwh – Kilowatt-hours
btu – British thermal units
flb – Foot-pounds
Power
eps – Ergs per second
mlw – Milliwatts
w – Watts
kw – Kilowatts
mw – Megawatts
gw – Gigawatts
calps – Calories per second
kcalps – Kilocalories per second
btuph – British thermal units per hour
btups – British thermal units per second
ftlbps – Foot-pounds per second
hp – Horse power
Magnetism
nt – Nanoteslas
ut – Microteslas
ga – Gauss
mlt – Milliteslas
t – Teslas
kt – Kiloteslas
mt – Megateslas
Volume
tsp – Teaspoons (US)
tbs – Tablespoons (US)
oz – Ounces (US)
cup – Cups (US)
pt – Pints (US)
qt – Quarts (US)
gal – Gallons (US)
uk_oz – Ounces (UK)
uk_pt – Pints (UK)
uk_qt – Quarts (UK)
uk_gal – Gallons (UK)
ml – Milliliters
lt – Liters
Frequency
hz – Hertz
khz – Kilohertz
mhz – Megahertz
ghz – Gigahertz
thz – Terahertz
Comments
0 comments
Article is closed for comments.