floattan()
Description
Return the tangent of an angle.
Syntax
floattan(value, angle_parameter);
Parameters
Variable | Input |
|---|---|
| Value to calculate the tangent of. |
| degrees - Angle in degrees grades - Angle in grades radian - Angle in radian The default is radian. |
Returns
The result: the tangent of the input number.
Function call example
Example of using float type numbers tangent
new data1=10;
new Float: data2;
new Float: tan;
main(){
data2 = float(data1); //first convert previous data into floating point if it wasn't before
tan = floattan(data2, degrees); //the result will be: tan = 0.1763269
while(1){
Delay(100);
}
}