prg_string_to_double()
Abstract
Converts a string representing a double value to a double.
Syntax
prg_string_to_double (str, dval_ptr)
| Argument | Type | Description |
|---|---|---|
str |
const char * |
The string to be converted. |
dval_ptr |
double * |
Area in which to store the converted double. |
Return Type
PrgT_Compcode
PrgC_Compcode_Success if the conversion is successful; PrgC_Compcode_Failure otherwise.
Header
prg_string_funcs.h
Details
This function removes spaces and the local thousands separator (such as comma) from str, then converts the resulting string, and sets dval_ptr to the double value or to one of the following symbolic constants:
VOSC_NA_DBL_INFINITYVOSC_NA_DBL_NEG_INFINITYVOSC_NA_DBL_DISABLEDVOSC_NA_DBL_UNSPECVOSC_NA_DBL_UNDEFVOSC_NA_DBL_VECTOR_END