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

# wcstod\_l(3)

convert string to float, double or long double

## NAME

**wcstof\_l**, **wcstod\_l**, **wcstold\_l** – convert string to *float*, *double* or *long double*

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

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

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

*float*\

**wcstof\_l**(*const wchar\_t \* restrict nptr*, *wchar\_t \*\* restrict endptr*, *locale\_t loc*);

*long double*\

**wcstold\_l**(*const wchar\_t \* restrict nptr*, *wchar\_t \*\* restrict endptr*, *locale\_t loc*);

*double*\

**wcstod\_l**(*const wchar\_t \* restrict nptr*, *wchar\_t \*\* restrict endptr*, *locale\_t loc*);

## DESCRIPTION

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

## SEE ALSO

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