To elaborate a bit on @mratsim's answer: you cannot change the format pattern 
string at runtime. But perhaps that isn't what you are trying to do, in any 
case the docs actually have some good examples: 
[https://nim-lang.org/docs/strformat.html#formatting-floats](https://nim-lang.org/docs/strformat.html#formatting-floats)

Reply via email to