floatmul()
Description
Multiply two floating point numbers
Syntax
floatmul(oper1, oper2);
Returns
The result: oper1 × oper2.
Parameters
Variable | Input |
|---|---|
| The value to be multiplied together. |
| The value to be multiplied together. |
Function call example
Float type numbers multiplication example
new Float: data1 = 3.78;
new Float: data2 = 7.63;
new Float: mult;
main(){
mult= floatmul(data3, data4); //result of mult will be mult = 28.8414
while(1){
Delay(100);
}
}Notes and Warnings
The user-defined * operator forwards to this function.