Please enable JavaScript to view this site.

Knowledge Bridge Documentation

Help version: 3.3.8

Navigation: Self-guided Training > Unit 13: Methods & Functions

JavaScript Math Library Global Object

Scroll Prev Top Next More

 

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.

Knowledge Bridge from Engingeering Intent is a full-featured engineering and sales automation environment