|        | |||||
|  | |||||
| function | FP_hypot | ||||
| Other Library Functions | 
| Library: Floating Point Include: omfloat.xin | Returns: Opaque The hypotenuse. | 
define external float function FP_hypot (value float x, value float y)
Calculates the hypotenuse of a right-angle triangle.
The following example shows how to use the FP_hypot function to make the calculation. The result is 7.07.
  global float x
  global float y
  global float result
  process
    set x to FP_v "5"
    set y to FP_v "5"
    set result to FP_hypot(x,y)
    output FP_s(result, 2) || "%n"
| ---- |