Not understand the ~0

as according to rule ~0 is 1 but in the video it is -1
i couldn’t understand how -1 can be expressed as binary digit

~0 is -1
~ is bit inversion operator

but !0 is 1

Positive numbers are represented in the same way as they are represented in sign magnitude method. If the number is negative then it is represented using 1’s complement. First represent the number with positive sign and then take 1’s complement of that number.

Example: Let we are using 5 bits register. The representation of -5 and +5 will be as follows:

+5 is represented as it is represented in sign magnitude method. -5 is represented using the following steps:

(i) +5 = 0 0101

(ii) Take 1’s complement of 0 0101 and that is 1 1010. MSB is 1 which indicates that number is negative.

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course