It's called two's complement.
And it's fuckin' neato.