Click here to Skip to main content
15,888,977 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want take input such as 0.20 if user enters it as 0.2 then it shuld become like 0.20
.
Please suggest Some solution.
Posted
Updated 25-Mar-14 22:44pm
v2

1 solution

try this

C#
yourNumber.ToString("N2");
 or
yourNumber.ToString("0.00");
 
Share this answer
 
Comments
Ni!E$H_WAGH 6-Mar-14 0:36am    
Thanks
OPees 6-Mar-14 0:39am    
:) Welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900