Let's imagine a string with the following value: 12,126456
How do I convert the string to 12.12?
I need to convert, using C #, so that the final string has a maximum of two digits after the comma.
I tried String.Format("{0:#,00}", valor )
but it did not work.