There were many question around the topic of formatting decimals according to user's locale and rounding decimals, but I haven't seen the one that actually fits my case, so here I go.
I am creating custom, styled LWC table component to display data from SF object. There will be currency column, it looks like this:
The problem you can see in the picture above is it's difficult to read and compare numbers because of different number of decimal places.
Is there any way to print the number with respecting decimal separator from user's locale but also setting fixed number of decimal places?
Decimal.format() part is easy, the fixed places are the main problem here.
P.S. I would rather have formatting done on backend due to design decisions already made.