FP_hypot
Full Description
swirl
Syntax
  define external float function FP_hypot (value float x, value float y)


Purpose

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"

Copyright © OmniMark Technologies Corporation, 1988-1998.