VBScript Sin Function
Definition and Usage
The Sin function can return the sine of a specified number (angle).
The Sin function takes an angle and returns the ratio of the two sides of a right triangle. This ratio is the length of the opposite side to the hypotenuse in the right triangle. The range of the result is between -1 and 1.
Note:Multiply the angle by pi/180 to convert it to radians, or multiply the radian by 180/pi to convert it to degrees.
Syntax
Sgn(number)
Parameter | Description |
---|---|
number | Required. An effective expression representing an angle in radians. |
Instance
Example 1
document.write(Sin(47))
Output:
0.123573122745224
Example 2
document.write(Sin(-47))
Output:
-0.123573122745224