When i use %f
in print it dosent work properly like the format type.
my code is:
a=13
print('dfdsfds %2f'%a +" {:.2f}".format(a))
the answer is:
dfdsfds 13.000000 13.00
and the %numf
just shows 6 precision and it doesn't care what is the num. why this happens?