Decimal to Binary

Convert a decimal number to its binary string representation.

Code

Utilities
echo "obase=2; $num" | bc

Parameters

Decimal number to convert.

Server

More Bash Snippets