Dec2Bin() Converts a decimal number to a binary string. Syntax: Dec2Bin ( nDec ) -> cBinary nDec : The decimal number to convert. Description: Converts a number in decimal base to a string in binary base. Return: The binary string. Example: ? Dec2Bin ( 10 ) // "1010"