Monday, June 23, 2008

Bin2Dec ( bin ; dmy )

Explatation : Converts binary number to decimal number.

Example : Bin2Dec ( 1100101010110001 ; 0 )
Output : 51889

Parameters : bin, dmy

Custom Function 
Right(bin;1)*2 ^ dmy +If(Length (bin) > 0;  Bin2Dec( Left(bin;Length ( bin) -1);dmy+1))

No comments: