Link to this page
Print this page
Parent topic
:
C API functions
C-Extensions
/
C API functions
rstod()
Converts a string to a double.
Syntax
mint rstod(char *
str
, double *
val
);
str
is a pointer to a null-terminated string.
val
is a pointer to a double value that holds the converted value.
Returns
Table 1. Return codes
Code
Description
0
The conversion was successful.
<0
The conversion failed.