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