LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

atof

atof

double atof (const char stringInput[]);

Purpose

Converts the initial portion of a string to a double representation. This function is equivalent to the following:

strtod(stringInput, (char **) NULL)

Parameters

Input
Name Type Description
stringInput const char [] Contains a pointer to the character sequence from which a conversion is made.

Return Value

Name Type Description
convertedValue double Contains the converted value, if any. If no conversion is possible, the function returns zero. If the correct value is outside the range of representable values, atof returns ± HUGE_VAL, according to the sign of the value, and sets errno to ERANGE. If the correct value causes underflow, the function returns zero.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?