It sounds simple, but when I tried to achieve, I know how to format this conversion, these are some examples of strings that I need to convert to decimal
00.24
48.34
01.24
Does anyone know how I can accomplish this? I tried like this
try
{
decimal x = Convert.ToDecimal("00.24", );
decimal x = Convert.ToDecimal("00.24", Formatter???);
}
Catch(Exception e)
{
throw new Exception()
}
But this does not work, because the result is 24D and I need 0.24D
Jorge source
share