DIAdem Help

Method: Cos for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: Cos for VBS

Calculates the cosine of a number.

vCos = Object.Cos(number)
ObjectVBS
Object with this method. You do not need to specify this object.
numberVariant
Specifies a numeric value that corresponds to an angle in radians.
vCosVariant
Receives the cosine. The result ranges from -1 to 1.

The following example calculates the cosine of the number pi.

Call MsgBox(Cos(Pi))

See Also

Objects Overview

Related Topics

Atn | Cos | Sin | Tan