bas7advr.hlp (
Topic list)
COS Function Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
COS returns the cosine of angle x.
COS(x)
■ The argument x can be of any numeric type.
Usage Notes
■ The cosine of an angle in a right triangle is the ratio between the
length of the side adjacent to the angle and the length of the
hypotenuse.
■ COS is calculated in single precision if the argument x is an
integer or single-precision value. If you use any other numeric data
type, COS is calculated in double-precision.
■ To convert values from degrees to radians, multiply the angle
(in degrees) times PI/180 (or .0174532925199433) where PI = 3.141593.
■ To convert a radian value to degrees, multiply it by 180/PI
(or 57.2957795130824) where PI = 3.141593.