Developer Documentation Library > UNICOM Intelligence Function Library > Mathematical functions > Sin
 
Sin
Returns the sine of an angle.
Syntax
Sin(<value>)
Parameters
<value>
Type: Double
A numeric value that represents an angle in radians.
(return)
Type: Double
Sine of <value>.
Notes
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, <value> 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