Scripting > UNICOM Intelligence Function Library > Mathematical functions > Sin
 
Sin
Returns the sine of an angle.
Syntax
Sin(Val)
Parameters
Val
Type: Double
A numeric value that represents an angle in radians.
(return)
Type: Double
Sine of Val.
Remarks
The Sin function takes an angle and returns the ratio of two sides of a right-angled triangle. The ratio is the length of the side opposite the angle divided by the length of the hypotenuse.
If the current data value is NULL, Val is 0.0 and the return value is 0.0.
This function is similar to the Sin function in VBScript.
Example
The following mrScriptBasic example uses the Sin function to get the sine of an angle:
Dim MySine
MySine = Sin(2.7) ' Returns 0.42737988023383
See also
Cos
Mathematical functions