Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given a real number between 0 and 1 (e.g., 0.72) that is passed in as a double, print the binary representation. If the number cannot be represented accurately in binary with at most 32 characters, print "ERROR".
Please complete the following python code precisely:
```python
class Solution:
    def printBin(self, num: float) -> str:
```