---
name: "strtod_l"
section: "3"
platform: "macos"
package: "Libc"
version: "1752.120.2"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/strtod_l"
---

# strtod\_l(3)

convert ASCII string to floating point

## NAME

**strtod\_l**, **strtof\_l**, **strtold\_l** – convert ASCII string to floating point

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

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

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

*double*\

**strtod\_l**(*const char \* restrict nptr*, *char \*\* restrict endptr*, *locale\_t loc*);

*float*\

**strtof\_l**(*const char \* restrict nptr*, *char \*\* restrict endptr*, *locale\_t loc*);

*long double*\

**strtold\_l**(*const char \* restrict nptr*, *char \*\* restrict endptr*, *locale\_t loc*);

## DESCRIPTION

The **strtod\_l**(), **strtof\_l**(), and **strtold\_l**() functions are extended locale versions of the **strtod**(), **strtof**(), and **strtold**() functions, respectively. Refer to their manual pages for details. Also, see [xlocale(3)](/xlocale/3.md) for more information about extended locales.

## SEE ALSO

[strtod(3)](/strtod/3.md), [xlocale(3)](/xlocale/3.md)
