I'm having an issue here. Why does the code below give out a wrong output?
test = '{:.{}f}'.format(35.72506789023292, 15)
print(test)
>> 35.725067890232921
isnt it supposed to give me this?:
>> 35.725067890232920
i tried different numbers but they also fail. How can I make this work? I read regarding floats in Python and it is stated that it give accurate decimal digits for upto 16. This example only has 15 so it should be enough for float handling.