Dec2Bin-func
Convert a decimal number to binary. The input range is limited to -512 to 511.
string Dec2Bin(int n)$
n
Return a string for the binary result.
dec2Bin(9)$ = ; // 1001 string strBin; int n = -1; strBin$ = dec2Bin(n)$; strBin$ = ; // 1111111111
Bin2Dec, Dec2Hex, Hex2Dec