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