Two's complement: Difference between revisions

Content deleted Content added
PSNOW123 (talk | contribs)
m Made code moreC++ idiomatic.
PSNOW123 (talk | contribs)
m Reformatting a line of text which was overflowing the page width.
Line 285:
for ( int example : examples ) {
System.out.println(String.format("%5d%18s%36s%13d",
String.format("%5d%18s%36s%13d", example, toHex(example), toBinary(example), twosComplement(example)));
}
}