> 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/nedyx/clearlines-functions/mathematical-functions/dectobin.md).

# DECTOBIN

#### Syntax

**DECTOBIN**(*decValue*)

1. *decValue* - the decimal number which should be converted to a binary value - ***Value type**: number*

#### Remarks

1. The function returns the binary representation of *decValue*, as a text containing 0 and 1 (like “100101")
2. Decimal places of *decValue* are ignored.
3. A negative *decValue* returns a negative binary value.

**Examples**

*Example 1* - DECTOBIN of a single value:

<figure><img src="/files/sSnggzZYem2a8pONIEWn" alt=""><figcaption></figcaption></figure>

*Example 2* - DECTOBIN for a range of values:

<figure><img src="/files/dwwr1sZpbbdgVLX6EZwb" alt=""><figcaption></figcaption></figure>
