floatdiv()
Description
Divide a floating point number
Syntax
floatdiv(oper1,oper2);
Parameters
Variable | Input |
|---|---|
| The numerator of the quotient. |
| The denominator of the quotient. |
Returns
The result: oper1/oper2.
Function call example
float type numbers division example
new Float:data1 = 10.0;
new Float:data2 = 20.0;
new Float:div;
main()
{
div = floatdiv(data1, data2); //result will be div = 0.5
while(1)
{
Delay(100);
}
}
Notes and Warnings
The user-defined / operator forwards to this function.