Indeed use formatDecimal:
formatDecimal($Prices/Value, '#,##0.00')
Hi Enzel,
Can you use 'formatDecimal' instead of tostring and substring? I think this can work for you
https://docs.mendix.com/refguide/parse-and-format-decimal-function-calls/
Good luck!
Cheers, Mark