Two's complement: Difference between revisions

m
Minor tidy up.
m (Minor correction to code.)
m (Minor tidy up.)
Line 202:
for ( int example : examples ) {
System.out.println(
String.format("%5s5d%18s%36s%13s13d", example, toHex(example), toBinary(example), twosComplement(example)));
}
}
908

edits