I need to format ints and floats to string.
If it's float, I need ,
to be decimal separator. And .
must be thousand separator.
Also, I need to complete remaining decimals with 0
. Some examples:
float:
45,3: 000.045,30
125: 000.125,00
83560.195: 083.560,19
int:
45: 000.045
5789: 005.789
I managed to format thousands with "{0:#,0}"
but I still can't find how to format decimals and how to properly pad keeping separators.
This must be done regardless of configured culture :/