Number Units
Units specify the measurement or quantity of a number, adding context and meaning to calculations. They also simplify calculations by handling conversions automatically, eliminating the need for manual conversions.
These are the key concepts to understand units in Decipad:
- Simple Units: Simple units are straightforward and represent a specific quantity. For example,
$4
denotes 4 in dollars. - Complex Units: Complex units involve combinations of measurements, rates, or compound units. For instance,
miles per hour
represents the speed at which a distance is covered in one hour. - Built-in Units: Decipad already supports a list of several known units that you can reuse on your calculations. See list bellow.
- Custom Units You can define your own units simply by adding them to your calculations and Decipad will automatically detect them. Example:
5 mugs
or5$ per mug
. Alternatively you can use theadd custom unit
field on any formula block or column.
Converting Between Unitsโ
[Number] [Source Unit] in [Target Unit]
Decipad understands basic units and offers a conversion capability using the in
keyword. To convert a value from one simple unit to another, use the following syntax:
Convert 3 kilometers to miles: 3 kilometers in miles
Working with Formulas and Unitsโ
Decipad provides additional formulas to help you manipulate numbers with units.
stripunit()
removes the units from a calculation, allowing you to work with the numbers alone. Example:stripunit(5$ per mug)
will return5
.getunit()
retrieves the units used in a calculation, providing you with the unit information associated with the value. Example:getunit(10$)
will return$
.
These formulas are particularly useful when you need to perform calculations or comparisons without considering the units or when you want to extract the units for further analysis.
Built-in Unitsโ
Currencies Unitsโ
- ๐บ๐ธ United States dollar (
USD
):$
- ๐ช๐บ Euro (
EUR
):โฌ
- ๐ฏ๐ต Japanese yen (
JPY
):ยฅ
- ๐ฌ๐ง Pound sterling (
GBP
):ยฃ
- ๐ฆ๐บ Australian dollar (
AUD
):A$
- ๐จ๐ฆ Canadian dollar (
CAD
):C$
- ๐จ๐ญ Swiss franc (
CHF
):CHF
- ๐จ๐ณ Renminbi (
CNY
):ยฅ
- ๐ญ๐ฐ Hong Kong dollar (
HKD
):HK$
- ๐ณ๐ฟ New Zealand dollar (
NZD
):NZ$
- ๐ธ๐ช Swedish krona (
SEK
):skr
- ๐ฐ๐ท South Korean won (
KRW
):โฉ
- ๐ธ๐ฌ Singapore dollar (
SGD
):S$
- ๐ณ๐ด Norwegian krone (
NOK
):nkr
- ๐ฒ๐ฝ Mexican peso (
MXN
):$
- ๐ฎ๐ณ Indian rupee (
INR
):โน
- ๐ท๐บ Russian ruble (
RUB
):โฝ
- ๐ฟ๐ฆ South African rand (
ZAR
):R
- ๐น๐ท Turkish lira (
TRY
):โบ
- ๐ง๐ท Brazilian real (
BRL
):R$
- ๐น๐ผ New Taiwan dollar (
TWD
):NT$
- ๐ฉ๐ฐ Danish krone (
DKK
):dkr
- ๐ต๐ฑ Polish zลoty (
PLN
):zล
- ๐น๐ญ Thai baht (
THB
):เธฟ
- ๐ฎ๐ฉ Indonesian rupiah (
IDR
):Rp
- ๐ญ๐บ Hungarian forint (
HUF
):Ft
- ๐จ๐ฟ Czech koruna (
CZK
):Kฤ
- ๐ฎ๐ฑ Israeli new shekel (
ILS
):โช
- ๐จ๐ฑ Chilean peso (
CLP
):CLP$
- ๐ต๐ญ Philippine peso (
PHP
):โฑ
- ๐ฆ๐ช UAE dirham (
AED
):ุฏ.ุฅ
- ๐จ๐ด Colombian peso (
COP
):COL$
- ๐ธ๐ฆ Saudi riyal (
SAR
):๏ทผ
- ๐ฒ๐พ Malaysian ringgit (
MYR
):RM
- ๐ท๐ด Romanian leu (
RON
):L
- ๐บ๐ฆ Ukrainian hryvnia (
UAH
):โด
Time Unitsโ
- Second (
second
,sec
,s
). - Year (
year
,y
) =12 months
- Month (
month
,m
) =1/12 year
- Week (
day
,day
) =7 days
- Day (
day
,day
) =24 h
- Hour (
hour
,h
) =60 minutes
- Minutes (
minute
,m
) =60 s
Length Unitsโ
- Mile (
mile
,mi
) =1609.344 m
=1,760 yards
- Yard (
yard
,yd
) =3 ft
- Foot (
foot
,ft
) =12 inches
- Inch (
inch
,in
) =0.0254 meters
- Rope (
rope
) =6.096 meters
- Hand (
hand
) =4 inches
- Smoot (
smoot
) =1,702 meters
- Marathon (
marathon
) =42195 meters
- League (
league
,lea
) =4828 meters
Area Unitsโ
- Square Meter (
squaremeter
,m2
,mยฒ
). - Square Kilometer (
squarekilometre
,km2
,kmยฒ
) =10e6 m2
- Square Mile (
squaremile
,sqmi
) =2,589,988.110336 m2
=3,097,600 sqyd
- Square Yard (
squareyard
,sqyd
) =9 sqft
- Square Foot (
squarefoot
,sqft
) =144 sqin
- Square Inch (
squareinch
,sqin
) =0.00064516 m2
- Barn (
barn
,b
) =10eโ28 m2
- Hectare (
hectare
,ha
) =10,000 m2
- Are (
are
,a
) =100 m2
- Acre (
acre
,ac
) =4840 sqyd
- Barony (
barony
) =4000 ac
Mass Unitsโ
- Gram (
g
,gr
) - Tonne (
tonne
) =1000 kg
- Ton (
ton
) =2240 lbav
- Pound (Imperial) (
lbav
) =0.45359237 kg
- Ounce (Imperial) (
ozav
) =1โ16 lbav
- Ounce (US food nutrition labelling) (
oz
) =28 g
Temperature Unitsโ
- Kelvin (
kelvin
,K
). - Celsius (
celsius
,ยฐc
) =[K] โก [ยฐC] + 273.15
- Fahrenheit (
fahrenheit
,ยฐf
) =[K] โก ([ยฐF] + 459.67) ร 5โ9
Cooking Unitsโ
- Cup (Metric) (
cup
) =250ร10eโ6 m3
- Tea Spoon (Metric) (
teaspoon
,tsp
) =5ร10eโ6 m3
- Table Spoon (Metric) (
tablespoon
,tbsp
) =3 tsp
- Pinch (Metric) (
pinch
) =1/16 tsp
- Dash (Metric) (
dash
) =1/2 pinch
Volume Unitsโ
- Cubic Meter (
cubicmeter
,m3
,mยณ
). - Liter (
liter
,l
) =0.001 m3
- Cubic Mile (
cumi
) โก4168181825.440579584 m3
- Cubic Inch (
in3
,inยณ
,cuin
) =16.387064ร10eโ6 m3
- Cubic Yard (
yd3
,ydยณ
,cuyd
) =27 ft3
- Cubic Foot (
ft3
,ftยณ
,cuft
) =1,728 sqin
- Acre Foot (
acrefoot
,acft
) =1 ac x 1 ft
- Ton (
ton_displacement
) =0.99108963072 m3
- Gallon (Imperial) (
gallon
,gal
) =4.54609 liters
- Barrel (Imperial) (
barrel
,bl
) =36 gal
- Bushel (Imperial) (
bushel
,bu
) =8 gallons
- Bucket (Imperial) (
bucket
,bkt
) =4 gallons
- Pint (Imperial) (
pint
) =โก 1/8 gal
- Ounce (Imperial) (
floz
) =28.4130625ร10eโ6 m3
Typography & Displays Unitsโ
- Point (American, English) (
point
,pt
) =1/72.272 inches
- Twip (
twip
) =1/1440 inches
- Pica (
pica
) =12 points
Natural Science Unitsโ
- ร
ngstrรถm (
angstrom
,ร
) =0.1 nm
- Attometre (
attometre
,am
) =1ร10eโ18 m
- Fermi (
fermi
,fm
) =0.000001 nm
- Bohr (
bohr
,a0
,aโ
) =5.29177210903e-11 m
Nautical Unitsโ
- Nautical Mile (
nauticalmile
,nmi
) =1852 m
- Nautical League (
nauticalleague
,nl
) =3 nmi
- Fathom (
fathom
,ftm
) =6 ft
Surveyor Unitsโ
- Furlong (
furlong
,fur
) =220 yd
- Chain (
chain
,ch
) =66 ft
- Rod (
rod
,rd
) =0.25 chain
- Link (
link
,lnk
) =7.92 inches
Astronomy Unitsโ
- Astronomical unit (
austronomicalunit
,au
) =1.495978707ร10e11 m
- Light Year (
lightyear
,ly
) =9.4607304725808ร10e15 m
- Light Day (
lightday
,ld
) =24 lh
- Light Hour (
lighthour
,lh
) =60 lm
- Light Minutes (
lightminute
) =60 ls
- Light Second (
lightsecond
,ls
) =299792458 m
- Parsec (
parsec
,pc
) =30856775814913700 m
Speed Unitsโ
- Kimoleter per hour (
kilometer/hour
) - Meter per second (
meter/second
) - Mile per hour (
mph
) - Knot (
knot
) =1 nmi/hour
=1.852 kilometer/hour
Pressure Unitsโ
- Atmosphere (
atmosphere
,atm
). - Pascal (
pascal
,pa
) =1/101325 atm
- Bar (
bar
,ba
) =105 Pa
- Torr (
torr
,mmHg
) =1/760 atm
- Pound per square inch(*) (
psi
) =
Energy Unitsโ
- Joule (
Joule
,J
) - Calorie (
calorie
,cal
) =4.1868 J
- Watt hour (
Wh
) =3600 J
Force Unitsโ
- Newton (
newton
,N
).
Frequency Unitsโ
- Newton (
hertz
,Hz
).
Information Unitsโ
- Bit (
bit
) - Byte (
byte
)
Chemistry Unitsโ
- Mole (
mole
,mol
).
Electrical Unitsโ
- Watt (
watt
,W
). - Current (
ampere
,A
) - Coulomb (
coulomb
,C
) - Farad (
farad
,F
) - Omh (
omh
,ฮฉ
) - Siemens (
siemens
) - Volt (
volt
,V
)
Luminosity Unitsโ
- Candela (
candela
,cd
) - Lumen (
lumen
,lm
)
Solid Angleโ
- Lumen (
steraradian
,sr
)
Angles Unitsโ
- Radians (
radian
,rad
) - Degrees (
degree
,ยฐ
)