---
name: "uatof"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/uatof/3alleg4"
---

# uatof(3alleg4)

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**(3alleg4), **ustrtol**(3alleg4), **ustrtod**(3alleg4)
