iNum is an expression-based calculator language that makes mathematical calculations and unit conversions easy and intuitive.
42, -173.14, -0.001"Hello", 'World'true, false5km, 3.14m, 1024kbx = 42
name = "iNum"
distance = 5km
+-*/==!=>>=<<=x > 10 ? "big" : "small"
score >= 80 ? "pass" : score >= 60 ? "retry" : "fail"
fn double(x) = x * 2
fn circleArea(r) = pi * r * r
fn calculateTax(amount) = amount > 1000000 ? amount * 0.4 : amount * 0.2
5km to m // 5000
1gb to mb // 1024
(2km + 3km) to m // 5000
b64Encode(str): Encode string to Base64b64Decode(str): Decode Base64 stringtype(value): Get type of valuesin(x): Sine functioncos(x): Cosine functionpi: Pi (3.141592...)e: Euler's number (2.718281...)