EAGLE Help
strtod()
-
Function
-
Converts a string to a real value.
-
Syntax
-
real strtod(string s);
-
Returns
-
The strtod function returns the numerical representation
of the given string as a real value. Conversion ends at the
first character that does not fit into the format of a
real constant.
If an error occurs during conversion of the string 0.0
will be returned.
See also strtol
Example
string s = "3.1415";
real r = strtod(s);
printf("The value is %f\n", r);
Index
|
Copyright © 2005 CadSoft Computer GmbH
|