MCPcopy Index your code
hub / github.com/careercup/ctci / main

Method main

java/Chapter 5/Question5_2/Question.java:52–64  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

50 }
51
52 public static void main(String[] args) {
53 String bs = printBinary(.125);
54 System.out.println(bs);
55
56 for (int i = 0; i < 1000; i++) {
57 double num = i / 1000.0;
58 String binary = printBinary(num);
59 String binary2 = printBinary2(num);
60 if (!binary.equals("ERROR") || !binary2.equals("ERROR")) {
61 System.out.println(num + " : " + binary + " " + binary2);
62 }
63 }
64 }
65}

Callers

nothing calls this directly

Calls 2

printBinaryMethod · 0.95
printBinary2Method · 0.95

Tested by

no test coverage detected