I want to format a string with 1000's separator and also two decimal places by default
I tried this one but it's not working as it fails to append two zeros when there are no decimals
String.Format("{0:#,##0.##}", money); //I want something like 1000.23 and also 1000.00
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.