I am trying to remove last zero of a decimal value search a lot for this but all answers in web and stack overflow removing all zeros. My aim to display some zeros in last.
Sample
50.00000000
50.01000000
50.01010000
50.01011000
50.01010100
expected
50.00
50.01
50.0101
50.01011
50.010101
I dont lnow how to do it in c#.
I was tried many things like .ToString("G29")
; and other answers available but its all giving me like
50.00
50.01
50.01
50.01
50.01
Please Help..