Playground
Define variables with math expressions. They can reference each other and will be evaluated in the correct order automatically.
Examples
Results
Click Evaluate to see results
Quick Tips
- • Variables can reference other variables (e.g.,
b = a * 2) - • Use decimal precision math (e.g.,
0.1 + 0.2 = 0.3 exactly!) - • Access nested properties with dots (e.g.,
point.x) - • Use
$math functions: $math.sqrt(16), $math.PI, etc. - • Convert units:
$unit.mmToInch(25.4) - • Convert angles:
$angle.toRad(180)