# 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="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-5103d861ca2d0cdb14b530e992fe4e079b6a22e3%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-2daa8880b75cd89c66adb940f28e0f4023dfaed4%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>
