Units

📏Unit Expression Rules

Calcumber understands quantities consisting of a dimensionless magnitude and a unit expression that can be written in a natural way. However some rules are needed to prevent misinterpretation of unit symbols as variables.

✅ OK❌ Not OK📌 Rule
1 m1mUse a space between magnitude and unit.
1 W/(m^2*K)1 W / (m^2*K)Don’t use spaces within a unit.
3m * 2 m3 m*2 mUse a space between unit and succeeding operator.
1 W/m^2*KIn units, multiplication * has higher precedence than division /. Brackets are optional.
60 m350 s-1For positive integer exponents, the operator ^ can be omitted.
1 W/m2K1 W/m^2KAfter a short-form exponentiated unit, multiplication * can be omitted.

📏Predefined Units in Calcumber

Calcumber comes with a rich set of predefined units — including SI base units, derived units, common non-SI units.

🧱 SI Base Units

Any unit that is not defined in terms of other units is treated as a base unit in Calcumber. This includes the standard SI base units:

s – second (time)

m – metre (length)

kg – kilogram (mass)

A – ampere (electric current)

K – kelvin (temperature)

mol – mole (amount of substance)

cd – candela (luminous intensity)

🔧 Derived SI Units

These are defined in terms of the base units and commonly used in science and engineering:

UnitNameDefinition
radradian1 (angle)
srsteradian1 (solid angle)
Hzhertz1/s
Nnewtonkg*m/s^2
PapascalN/m^2
JjouleN*m
WwattJ/s
CcoulombA*s
VvoltJ/C
FfaradC/V
OhmohmV/A
Ssiemens1/Ohm
WbweberV*s
TteslaWb/m^2
HhenryWb/A
lmlumencd*sr
lxluxlm/m^2
Bqbecquerel1/s
GygrayJ/kg
SvsievertJ/kg
katkatalmol/s

⏱ Non-SI Units Accepted with SI

These are widely used and accepted in scientific and technical fields:

UnitNameDefinition
minminute60 s
hhour60 min
dday24 h
auastronomical unit149,597,870,700 m
degdegreeπ/180 rad
arcminarcminute1/60 deg
arcsecarcsecond1/60 arcmin
hahectare10,000 m²
Llitre0.001 m³
ttonne (metric ton)1000 kg
Dadalton1.66053906892e-27 kg
eVelectronvolt1.602176634e-19 J

📏 Additional Metric Units

UnitDescriptionDefinition
arearea unit100 m²
dioptrelens power1/m
barpressure unit100000 Pa

🧪 Other Predefined Units

UnitDescriptionDefinition
yearCalendar year (approximate)365.25 d
monthMonth (approximate)1/12 year
weekWeek7 d
WhWatt hourW*h

🇬🇧 Imperial and US Customary Units

UnitDescriptionDefinition
ininch0.0254 m
ftfoot12 in
ydyard3 ft
mimile5280 ft
milthou (thousandth of inch)0.001 in
acacre43560 ft²
galUS gallon3.785411784 L
qtUS quartgal / 4
ptUS pintqt / 2
cupUS cup (approximate)0.24 L
flozUS fluid ouncegal / 128
tbsptablespoonfloz / 2
tspteaspoontbsp / 3
lbpound0.45359237 kg
ozouncelb / 16
ststone14 lb
ton_usUS ton2000 lb
ton_ukUK long ton2240 lb
lbfpound-force4.4482216152605 N
psipounds per square inchlbf / in²
atmstandard atmosphere101325 Pa
°FFahrenheit (differential)5/9 K
mphmiles per hourmi / h
fpsfeet per secondft / s
ktknot1852 m / h
BTUBritish thermal unit1055.05585262 J
calcalorie4.184 J
Calcalorie on food labels1 kcal

☕Implicit Units / User Defined Units

Calcumber treats any undefined unit as a base unit — even if it’s something like coffee, EUR, or bean. These units don’t need to be pre-defined, and Calcumber will still allow meaningful calculations and unit cancellations.

7 coffe/day * 0.5 EUR/coffee3.5 EUR/day

use year1278.375 EUR/year

Even though coffee and EUR are not built-in units, Calcumber:

Cancels out coffee correctly

Recognizes day and converts it to year

So yes — you can calculate your yearly caffeine budget, even in undefined units. Coffee may come at a price — but at least it’s healthier than 1278 lbpy (liters beer per year 😉).

🪄Commands for Unit Manipulation

ubase

Converts to base units:

ubase 5 N5 kg*m^2/s^2

Without arguments, ubase coverts the last result to base units:

10 m/s^2 * 0.5 kg5 N ubase5 kg*m/s^2

use

Tells Calcumber what unit to use.

Syntax:

use unit, [expression]

Writes expression using a power of the specified unit times a base unit remainder:

expressionmagnitude unit^n*remainder.

Examples:

use N, 30 J30 m*N

use kWh, 9 MJ2.5 kWh

use A, 9 MJ9000000 kg*m^2/s^2 (Joule does not contain Ampère in its definition)

use s, 50 Hz50 1/s

use m, 200 L0.2 m^3

If expression is omitted, use applies to the last result:

50 L/min * 34 min1700 L

use m1.7 m^3

Scroll to Top