floatcos()
Syntax
floatcos(value, angleParameter);
Description
Return the cosine of an angle
Parameters
Variable | Input |
|---|---|
| The value to calculate the cosine of. |
| Specifies whether the angle (in parameter value) is specified in degrees, grades or radian. The default is radian. |
Returns
The result: the cosine of the input number.
Function call example
Float type numbers cosine example
new Float:data = 10.0;
new Float:cos;
main()
{
cos = floatcos(data, degrees); //result will be cos = 0.9848077
while(1)
{
Delay(100);
}
}