Everything

atof


Conversion of character string to floating-point number (double type)

[Classification]

Standard library

[Syntax]

#include <stdlib.h>

double __far atof(const char __near *nptr);

double __far _COM_atof_f(const char __far *nptr);

[Return value]

If the partial character string has been converted, the resultant value is returned. If the character string could not be converted, 0 is returned.

If an overflow occurs, atof returns ±∞ and sets macro ERANGE to global variable errno.

If an underflow occurs, atof returns 0 and sets macro ERANGE to global variable errno.

[Description]

This function converts the first portion of the character string indicated by nptr into a float type representation.