.NET supports two types of string formatting.
I'm in a situation where existing configuration data has #,##0 style formatting. A new feature requires formatting to the same output, but the API needed for this feature only accepts formatting of type {0:n2}.
Does anyone know of a means to convert between these two representations for numeric types? DateTime can be ignored.
EDIT I've learned that:
The
{0:n2}style is known as standard numeric formattingThe
#,##0style is known as custom numeric formatting