Dec 31, 2010 #1 A annum Newbie level 4 Joined Dec 21, 2010 Messages 7 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,283 Activity points 1,311 i have binary data taking 4 bits at a time iam storing data in variable how can i convert data to decimal . command bin2dec asks for a string can anyone help me for command for conversion.
i have binary data taking 4 bits at a time iam storing data in variable how can i convert data to decimal . command bin2dec asks for a string can anyone help me for command for conversion.
Dec 31, 2010 #2 S sv1437 Full Member level 6 Joined Sep 5, 2008 Messages 349 Helped 103 Reputation 204 Reaction score 98 Trophy points 1,308 Location US Activity points 3,110 If you want to convert 1010 (binary) to decimal : use bin2dec('1010') . Strings should be placed in single quotations.
If you want to convert 1010 (binary) to decimal : use bin2dec('1010') . Strings should be placed in single quotations.