floatadd()
Description
Add two floating point numbers.
Syntax
floatadd(oper1, oper2);
Parameters
Variable | Possible input |
|---|---|
| The value to be added together. |
| The value to be added together. |
Returns
The result: the sum of oper1 and oper2.
Function call example
Float type numbers addition example
new Float:data1 = 10.5688794;
new Float:data2 = 20.4567894;
new Float:add;
main()
{
add = floatadd(data1, data2); //result will be add = 31.0256688
while(1)
{
Delay(100);
}
}Notes and Warnings
The user-defined + operator forwards to this function.