Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Tan FunctionThis standard VB function returns the tangent of an angle in radians. SyntaxReturnsUsageNumber is specified in radians and can be either positive or negative. The return value is single precision if the angle is an integer, currency, or single-precision value; double precision for a long, variant, or double-precision value. To convert degrees to radians, multiply by PI/180. The value of PI is 3.14159. ExampleThis example finds the height of the exterior wall of a building, given its roof pitch and the length of the building. Sub Button_Click See AlsoAtn Function |
Siebel VB Language Reference |