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)
- strformat using a run-time defined format string woggy
- Re: strformat using a run-time defined format string mratsim
- Re: strformat using a run-time defined format string dom96
