Convert to binary string

Supported in: Batch, Faster, Streaming

Writes an integer in binary digits, with a negative integer as its 64-bit two's complement.

Expression categories: Numeric, String

Declared arguments

  • Expression: Integer to write in binary.
    Expression<Byte | Integer | Long | Short>

Output type: String

Examples

Example 1: Base case

Argument values:

  • Expression: value
valueOutput
131101

Example 2: Null case

Argument values:

  • Expression: value
valueOutput
nullnull