human
Decimal equivalent of concatenation of absolute difference of floor and rounded | Function to find the decimal equivalent of the new binary array constructed from absolute decimal of floor and the round - off values.
Traverse the givenarray from the end.
Stores the absolute difference between floor and round - off each array element.
If bit / difference is 1 , then calculate the bit by proper power of 2 and add it to result.
Increment the value of power.
Print the result.
Driver Code"
How can the above be solved in Python?

=====
Can you provide a code to decimal equivalent of concatenation of absolute difference of floor and rounded and the other steps required?
assistant
#Here is code to decimal equivalent of concatenation of absolute difference of floor and rounded and the other steps required.
 def findDecimal ( arr , N ) :
	power = 0 ;
	result = 0 ;
	for i in range ( N - 1 , - 1 , - 1 ) :
		bit = abs ( int ( arr [ i ] ) - round ( arr [ i ] ) ) ;
		if ( bit ) :
			result += pow ( 2 , power ) ;
		power += 1 ;
	print ( result ) ;
arr = [ 1.2 , 2.6 , 4.2 , 6.9 , 3.1 , 21.6 , 91.2 ] ;
N = len ( arr )
findDecimal ( arr , N ) ;