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


Purpose

Adds two floating point numbers and returns the sum. Overflow and underflow values will return infinity and zero, respectively.

This sample shows how to use the basic floating point arithmetic function FP_add , as well as FP_div.

  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

Copyright © OmniMark Technologies Corporation, 1988-1998.