← Back to context

Comment by mike31fr

2 years ago

Units handling in maths blocks is awesome.

Exemple 1:

g = 9.81 m/s^2

time = 60s

Then "g*time" shows "588.6 m / s"

Exemple 2:

energy = 14 J

distance = 5m

"energy/distance" shows "2.8 N"

Wow.

EDIT: I just found out that behind the scenes it's using maths.js. This library does this natively. Input "14J/5m" into maths.js and you get "2.8 N" as output. Glad I discovered this library.