I am using xlrd to read values from cells in an excel spreadsheet. Whenever I detect a cell type = 2, then I know it is a number. A number of 3 in cell will be returned as 3.0 And a number of 3.14 will be returned as 3.14
I will be converting numbers to text. What function should I use to remove zeroes right of the decimal and the decimal?
The above 2 numbers should be 3 and 3.14