erg 0.6.53

The Erg programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{m; s; kg; Kg} = import "unit"

print! kg + kg
j = kg*m*m/(s*s)
v = j/kg*s/m
print! m/s + v

Joule = Dimension(Int, 1, 2, -2, 0, 0, 0, 0)
j: Joule

f _: Kg = None
f kg
f kg/m*m

w = 2.0kg
assert w >= 1.0kg
assert int(w.value()) == 2