Print binary representation of a decimal number
Problem Given a (decimal – e.g. 3.72) number that is passed in as a string, print the binary representation. If the number can not be represented accurately in binary, print “ERROR”. Examples Example 1: Input: num = 3.625 Output: 11.101 Example 2: Input: num = 3.26 Output: ERROR Explanation: There are accuracy issues with floating point numbers. ...