title: Python 3 : print float precision without zero followed
body: <p>For example</p>
  
  <pre><code>x = 1.23
  print("%.3f" % x)
  </code></pre>
  
  <p>Output will be "1.230" and I want "1.23".
  Is there any way to do? Thank you.</p>
  
  <p>edited:
  I want a function that will print floating point at <strong>limit precision</strong> and will not print zero followed if it's not reach the limit given</p>