atof

Converts a string to double-precision number.

Library:LibC
Classification:ANSI
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  double atof (
     const char   *ptr);
  

Parameters

ptr

(IN) Points to the string to be converted.

Return Values

Returns the converted value. A value of 0 is returned when the input string cannot be converted.

See Also