30 of 323
ZBasic System Library 20 ZX Microcontroller Family Acos Type Function returning Single Invocation Acos(arg) Parameter Method Type Description arg ByVal Single The value from which the arc cosine will be computed. Discussion The arc cosine function is the inverse of the cosine function. The return value will be the angle, expressed in radians, whose cosine corresponds to the passed value. The type of the return value will be Single and the value will range from 0.0 to p. If the argument is greater than 1.0 or less than –1.0, the result will be undefined. Example Dim val as Single, theta as Single val = 0.5 theta = Acos(val) 'the result will be approximately 1.0472. See Also Cos, DegToRad, RadToDeg