Sin

concerns

The Sin function calculates the sine of the specified value. The angle to calculate must be specified in radians.

 

Syntax

Sin(Value)

Return value

Type

Description

Double

The result ranges from -1 to 1

Parameter

Use

Name

Type

Passing

Description

Required

Value

Double

ByVal

Value for determining the sine

Note

The Sin function calculates an angle and returns the ratio of two sides of a right-angled triangle. The ratio corresponds to the length of the counter cathete divided by the length of the hypotenuse.

To convert degrees to radians, the degree must be multiplied by π/180. In order to convert radians into degrees, the radians must be multiplied by 180/π.

Example

Dim Result As Double

Result := Sin(PI / 2)

 

Ergebnis = 1