abs

Description

Finds the absolute value of a numeric

Definition

abs(x) ((x)<0 ? -(x) : (x))

This macro evaulates the argument more than once. It is also inconsistent with the ANSI C abs() function. From 4.620 you can stop it being defined by defined by defining NO_ANSI_POLLUTE before including dp4.h or dp4capi.h. Please note that this macro works with double variables, whereas the ANSI C function does not!