title: How to round up a complex number?
body: <p>How can I round up a complex number (e.g. <code>1.9999999999999998-2j</code>) as <code>2-2j</code>?</p>
  
  <p>When I tried using </p>
  
  <pre><code>print(round(x,2))
  </code></pre>
  
  <p>it showed</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python34\FFT.py", line 22, in &lt;module&gt;
      print(round(x,2))
  TypeError: type complex doesn't define __round__ method
  </code></pre>