I used float to read a number in a text file. for example : number=float(25.0000) ,then I tried to write this number in another file, so I used str format. But what I saw in my text file was like 25.0 .I like to know what should I do to have exactly the number that I had before.(25.0000)
I also like to know if even I don't know how many decimal the number has it is possible or not?
with open(file , 'w') as f:
    num =float(25.0000)
    f.write(str(num))