Start Back Next End
  
ZBasic System Library
292
ZBasic Microcontrollers
Sin
Type
Function returning Single
Invocation
Sin(arg)
Parameter
Method
Type
Description
arg
ByVal
Single
The angle, in radians, of which the sine will be computed.
Discussion
The return value will be the sine of the supplied value, in the range –1.0 to 1.0.
Example
Const pi as Single = 3.14159
Dim val as Single
val = Sin(pi / 2.0)
' result is approximately 1.0
See Also
Previous page Top Next page