Share the joy
use the string format to remove the tailing zeros after decimal.
For this use
item.ToString(“G69”);
It will remove all the zero followed by decimal.
example Output:
0.400 –> 0.4
4.00 –> 4
4.0300 –> 4.03
4 –> 4
Share the joy
use the string format to remove the tailing zeros after decimal.
For this use
item.ToString(“G69”);
It will remove all the zero followed by decimal.
example Output:
0.400 –> 0.4
4.00 –> 4
4.0300 –> 4.03
4 –> 4