(Jul-10-2022, 03:15 PM)AlphaInc Wrote: If (which I think will be the case) this is too complex and there is a far easier method, please let me know :)Congratulations, well done. But indeed there is an easier method: use an f-string and mark the type as "n" (number). But then you need to set the locale of your environment. (Not sure if this works also with Windows.)
PyDev console: starting. Python 3.9.5 (default, Nov 23 2021, 15:27:38) [GCC 9.3.0] on linux import locale locale.setlocale(locale.LC_ALL, '') # Get the locale from your OS 'nl_NL.UTF-8' aa = 1234567890 print(f"{aa:n}") 1.234.567.890