How is the value of ~10

how ~10 is diving -11

hi @rahulisaboy77,
01010 : 10
10101 : -16+5 = -11
here first bit is signed bit thats why