Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Math Object > Math.cos() MethodThis method returns an implementation-dependent approximation of the cosine of the parameter. The parameter is expressed in radians. SyntaxReturnsAn implementation-dependent approximation of the cosine of number. UsageThe return value is between -1 and 1. NaN is returned if number cannot be converted to a number. The angle can be either positive or negative. To convert degrees to radians, multiply by ExampleThis example finds the length of a roof, given its pitch and the distance of the house from its center to the outside wall. function RoofBtn3_Click () pitch = 35; TheApplication().RaiseErrorText("The length of the roof is " + See AlsoMath.acos() Method |
Siebel eScript Language Reference |