Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Code/Standard C Library/Functions/strtod

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

strtod #include <cstdlib> double strtod( const char *start, char **end ); The function strtod() returns whatever it encounters first in start as a double. end is set to point at whatever is left in start after that double. If overflow occurs, strtod() returns either HUGE_VAL or -HUGE_VAL. x = strtod( "42.0is_the_answer" ); results in x being set to 42.0. Related topics atof