Function _parnd() Foundation

Returns the value of a numeric parameter as a floating point number.

Syntax
DOUBLE _parnd(XppParamList pList, ULONG ulIndex, ...);
Parameters
XppParamList pList
Pointer to the Xbase++ parameter list, which is used to provide access to the parameter.
ULONG ulIndex
Position of the parameter which contains the numeric value (first parameter is 1).
...
The remaining arguments must be of ULONG type and are only considered when the parameter <ulIndex> is an array. In this case, an index is specified for each array dimension to specify the element which has the numeric value. Note:The end of the array index list must be indicated by incorporating a NULL as the last value in the list.
Return

Returns a double value. When the parameter does not contain a numeric value, NULL is returned.

Description

_parnd() is used to read a numeric value from a parameter.

Examples
/* 
Reads a numeric value from a parameter. 
*/ 
#include <xpppar.h> 

double numDouble; 
/* Is parameter 5 a numeric value? */ 
if ( XPP_IS_NUM( _partype(<pList>, 5) ) ) 
{ 
numDouble = _parnd(<pList>, 5); 
} 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.