Adding TCL Expressions With Text

I’m pretty confident with expressions in Nuke, but once I start adding expression within text fields in Nuke (in node labels or Text nodes) I quickly get confused with the syntax. Today I wanted to round the value from a knob before displaying it and I had to ask around before I got it right so I thought I’d make a note of it.

[expression (rint([value knob]))]

Or if you wanted to simply multiply a value by 2 before displaying it you would use:

[expression ([value knob]*2)]