I have a process, in which client want me to always display amount with two decimals either have value with decimal or not
example: if 17 then i want to display "17.00" and if 17.2 then i want to display "17.20"
or if 17.2033 then i want to display "17.20" i have tried String.Format("{0:.##}", rec.Rate)
it does not works, please help me how can i do it.. thanks in advance