ClassSystem.Math SyntaxDim result As Double = Math.Cos (d)
DescriptionThe Cos function returns the cosine of an angle, the ratio of the length of the side adjacent to the angle divided by the length of the hypotenuse, in the range of -1 to 1 inclusive. Usage at a Glance
Version DifferencesIn VB 6, Cos is an intrinsic VB function. In the .NET platform, it is a member of the System.Math class and not directly part of the VB language. See AlsoCosh Function, Sin Function, Tan Function |