Math.Tan(Value)
.Tan() method returns the tangent of a number.
Applies To
Description
Math.Tan() method returns the tangent of a number.
Properties and Methods
None
Available
The .Tan(Value) method is available in:
- 15.03.016
- All newer builds
Type
Decimal
Syntax
Math.Tan(Value);
Parameters
Parameter |
Required |
Description |
---|---|---|
Value |
Yes |
Any data that can be evaluated as a number. If the value cannot be evaluated as a number, then DEACOM will throw a scripting error. |
Example
Event.Form.MessageBox('Math.Tan(0): ' + Math.Tan(0) +
'\nMath.Tan(1): ' + Math.Tan(1) +
'\nMath.Tan(-1): ' + Math.Tan(-1) +
'\nMath.Tan(.5): ' + Math.Tan(.5));
/* Expected System Prompt Display:
Math.Tan(0): 0
Math.Tan(1): 1.5574077246549
Math.Tan(-1): -1.5574077246549
Math.Tan(.5): 0.54630248984379
*/