get_xarg_fval

Get a subroutine argument as a floating-point value

WSupported on Windows
USupported on Unix

 

 

double get_xarg_fval(DESCRIP **argblock, int arg)

Arguments

argblock

The argument block pointer passed by the Synergy DBL subroutine to the C function.

arg

The number of the argument to reference.

Discussion

The get_xarg_fval function gets a subroutine argument and converts it into a floating-point value of the native C “double” type.

The return value is the referenced argument evaluated as a double. If the argument wasn’t passed, the returned value is zero. If the argument is alpha, it is treated as if it were decimal.