# 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/xYX4hS6u1MwfEtFsGp4Q" alt=""><figcaption></figcaption></figure>

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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/nedyx/clearlines-functions/mathematical-functions/dectobin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
