Math.Sin(Value)

.Sin() method returns the sine of a number.

Applies To

Description

Math.Sin() method returns the sine of a number. The Value is in radians

Properties and Methods

None

Available

The .Sin(Value) method is available in:

  • 15.03.016
  • All newer builds

Type

Decimal

Syntax

Math.Sin(Value);

Parameters

Parameter

Required

Description

Value

Yes

Any data that can be evaluated as a number that is a radian.

If the value cannot be evaluated as a number, then DEACOM will throw a scripting error.

Example

Event.Form.MessageBox('Math.Sin(0): ' + Math.Sin(0) +

'\nMath.Sin(1): ' + Math.Sin(1) +

'\nMath.Sin(-1): ' + Math.Sin(-1) +

'\nMath.Sin(Math.PI): ' + Math.Sin(Math.PI));

 

/* Expected System Prompt Display:

Math.Sin(0): 0

Math.Sin(1): 0.841470984807896

Math.Sin(-1): -0.841470984807896

Math.Sin(Math.PI): 3.2310851043327e-15

*/