FP_div Full Description |
|
Syntaxdefine external float function FP_div (value float x, value float y) Purpose Divides two floating point numbers and returns the quotient. Overflow and underflow values will return infinity and zero, respectively. Division by zero returns "not a number" (NaN). This sample shows how to use the basic floating point arithmetic function define external float function FP_add (value float x, value float y) define external float function FP_div (value float x, value float y) . . . set result to FP_add(x,y) ; adds x and y set speed to FP_div(distance,time) ; divides distance by time to determine speed |