There is also a JavaScript global object available in kBridge: "Math.". It contains many common math functions, among them:
Math.PI // returns PI
Math.LN2 // returns the natural logarithm of 2
Math.LN10 // returns the natural logarithm of 10
Math.LOG2E // returns base 2 logarithm of E
Math.LOG10E // returns base 10 logarithm of E
The available Math. objects are in the Math. Objects Rules Syntax Reference section of this documentation. Common arithmetric expressions and methods are in the Rule Syntax Reference documentation as well.