Tengo una cadena como 000000000100, que me gustaría convertir a 1,00 y viceversa.
El cero inicial se eliminará, los dos últimos dígitos son el decimal.
Doy más ejemplo:
000000001000 <=> 10.00
000000001005 <=> 10.05
000000331150 <=> 3311.50
Below is the code I am trying, it is giving me result without decimal :
amtf = string.Format("{0:0.00}", amt.TrimStart(new char[] {'0'}));

PadLeft(12,'0')of the string