Skip to main content
2 of 3
replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/

Fixed digits number in floats


The reason why I want to share this question is because I actually learnt a lot putting the answer together and revising it. I have to admit I did not fully understand the question at first - and the first version of my answer reflects that. However, eventually it clicked.
Most importantly, in writing the new answer, I learnt a lot about the newer Python string formatting using curly braces {} instead of the percentage symbol %.

Personally, this is what the stackoverflow-experience is. I like and enjoy helping others. But more so do I like learning myself. I browse new questions in my favorite tags and try to answer those that spark my interest. Often I do not know the full answer when I decide to answer (I won't be the fastest gun in the west). But I like trying to figure out something new. Thus, my personal coding skills have improved greatly since I joined this site - all, by trying to figure out answers to questions I find to be interesting puzzles.

Schorsch
  • 7.9k
  • 12
  • 6