Start Back Next End
  
ZBasic System Library
324
ZBasic Microcontrollers
Tan
Type
Function returning Single
Invocation
Tan(arg)
Parameter
Method
Type
Description
arg
ByVal
Single
The angle, in radians, of which the tangent will be computed.
Discussion
The return value will be the tangent of the supplied value.  Note that the Tan() function may return
positive or negative infinity values.
Example
Const pi as Single = 3.14159
Dim val as Single
val = Tan(pi / 4.0)
' result is approximately 1.0
See Also
Previous page Top Next page