I have the numbers.
‘115000000000’
‘10000000’
‘99700000000’
I need to make them look like this:
‘1150,00000000’
‘0,10000000’
‘997,00000000’
or
‘1150’
‘0,1’
‘997’
>Solution :
n = ['115000000000', '10000000', '99700000000']
nn= [str( float(float(element)/100000000) ) for element in n]
results in nn to be:
['1150.0', '0.1', '997.0']