What about:
value = 9024178.32 print(f"{value:_}".replace(".", ",").replace("_", "."))
which gives: 9.024.178,32