DECTOBIN

Returns the binary representation of a decimal number.

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:

Example 2 - DECTOBIN for a range of values:

Last updated