double num1 = 0.625 ; Input value in Decimal
String output = printBinary ( num1 ) ; System . out . println ( " ( 0" + output + " ) ▁ in ▁ base ▁ 2" ) ; double num2 = 0.72 ; output = printBinary ( num2 ) ; System . out . println ( " ( " + output + " ) ▁ " ) ; } }