Programming Guide



sm_*dblval

Returns the value of a field as a double precision floating point

double sm_dblval(int field_number);
double sm_e_dblval(char *field_name, int element);
double sm_i_dblval(char *field_name, int occurrence);
double sm_n_dblval(char *field_name);
double sm_o_dblval(int field_number, int occurrence);

field_name, field_number
The field with the value to get.

element
The element in field_name with the value to get.

occurrence
The occurrence with the value to get.

Environment

C only

Returns

Description

sm_dblval returns the contents of the specified field as a double precision floating point. It calls sm_strip_amt_ptr to remove extra amount editing characters before it converts the data.

Example

#include <smdefs.h>

/* Retrieve the value of a starting parameter. */

double param1;

param1 = sm_n_dblval("param1");

See Also

sm_dtofield, sm_strip_amt_ptr