Math
Scripting object used to perform math functions and operations.
Applies To
None
Description
Object to perform math functions within scripting. Please use the DEACOM specific Math functions to ensure forward compatibility with your scripts. Use of generic JavaScript math functions do work with current scripting capabilities, but we strongly recommend using the DEACOM Math object.
Properties and Methods
Properties
Methods
- .Abs(Value)
- .Acos(Value)
- .Asin(Value)
- .Atan(Value)
- .Atan2(Y,X)
- .Ceiling(Value)
- .Cos(Value)
- .Cosh(Value)
- .Exp(Value)
- .Floor(Value)
- .Log(Value[, Base])
- .Max(L, R)
- .Min(L, R)
- .Pow(X, Y)
- .Round(Value[, Decimals, Bankers])
- .Sign(Value)
- .Sin(Value)
- .Sinh(Value)
- .Sqrt(Value)
- .Tan(Value)
- .Tanh(Value)
- .Truncate(Value)
Available
The Math object is available in:
- 15.03.016
- All newer builds
Type
Object
Syntax
Math;
Parameters
None
Example
There isn’t a time or place where the Math method would be called on its own. Math is the Parent key to the list of functions listed above.