> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.66-de/clearlines-funktionen/mathematische-funktionen/dectobin.md).

# DECTOBIN

Liefert die binäre Darstellung einer Zahl zurück.

#### Syntax

**DECTOBIN**(*decValue*)

1. *decValue* - der dezimale Wert, der in einen binären Wert umgewandelt werden soll - ***Wertetyp:** Zahl*

#### Bemerkungen

1. Die Funktion liefert die binäre Darstellung von *decValue* als Text zurück (z.B. "100101").&#x20;
2. Dezimalstellen von decValue werden ignoriert.&#x20;
3. Ein negativer *decValue* gibt einen negativen binären Wert zurück.

**Beispiele**

*Beispiel 1* - DECTOBIN für einen einzelnen Wert:

<figure><img src="https://2264115400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5AXM9De6LygFtEaDe5ri%2Fuploads%2FRirsxyXrNb7DLUZ18zim%2Fgrafik.png?alt=media&amp;token=68da49d7-64e9-452c-8930-6594552c80ed" alt=""><figcaption></figcaption></figure>

Beispiel 2 - DECTOBIN für einen Bereich von Werten:

<figure><img src="https://2264115400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5AXM9De6LygFtEaDe5ri%2Fuploads%2FbJtUEMkj1Xlkf3kT65Nd%2Fgrafik-1.png?alt=media&amp;token=2ddac217-72dd-45ba-9a44-9e164f2466a5" alt=""><figcaption></figcaption></figure>
