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