I\'m looking for a way to convert numbers to string format, dropping any redundant \'.0\'
The input data is a mix of floats and strings. Desired output:
0
Following code will convert contents of variable no as it is i.e. 45.60. If you use str the output will be 45.6
45.60
str
45.6
no = 45.60 strNo = "%.2f" %no