Bookshelf Home | Contents | Index | PDF |

Siebel VB Language Reference > VB Language Reference > ## Cos FunctionThis standard VB function returns the cosine of an angle. ## Syntax## Returns## UsageThe return value is between -1 and 1. The return value is a single-precision number if the angle has a data type of integer or currency, or is a single-precision value. The return value is a double-precision value if the angle has a data type of long or variant, or is a double-precision value. The angle can be either positive or negative. To convert degrees to radians, multiply by (PI/180). The value of PI is approximately 3.14159. ## ExampleThis example finds the length of a roof, given its pitch and the distance of the house from its center to the outside wall. Sub Button_Click ## See AlsoAtn Function |

Siebel VB Language Reference |