i need a function that will convert binary with sign to integer.
int("1010",2)
#this will be converted to 10 instead of -6 -
# i want a fucnction that will convert it into -6
i need a function that will convert binary with sign to integer.
int("1010",2)
#this will be converted to 10 instead of -6 -
# i want a fucnction that will convert it into -6