ID : 229
Cos
Function
To return cosine.
Syntax
Cos(angle)
Guaranteed entry
- Angle
- Designate by Double Precision Real Number Type data. The unit is [Degree].
Return value
Return Double Precision Real Number Type data.
Description
Cosine is returned.
Attention
The return value unit is [Degree].
Example
'!TITLE "Calculation of Cosine"
' Calculation of cosine of 0 degree
Sub Sample_Cos
Dim aaa As Integer
' Assign the cosine value of 0 degree to aaa
aaa = Cos( 0 )
' Display "1" on the message output window
PrintDbg aaa
End Sub
ID : 229