---
name: "uatof"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://carta.tech/man/uatof"
---

# uatof(3alleg)

Converts a string into a double. Allegro game programming library.

## NAME

uatof - Converts a string into a double. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**double uatof(const char \*s);**

## DESCRIPTION

Convert as much of the string as possible to an equivalent double precision real number. This function is almost like \`ustrtod(s, NULL)'.

## RETURN VALUE

Returns the equivalent value, or zero if the string does not represent a number.

## SEE ALSO

[**uconvert**(3alleg)](/man/uconvert/3alleg.md), [**ustrtol**(3alleg)](/man/ustrtol/3alleg.md), [**ustrtod**(3alleg)](/man/ustrtod/3alleg.md)
