Issue
In C# how can I format $2,471,450.5 to $2,471,450.50 (Keeping Zero at the end)
This is the expression I'm using to format it and get this value $2,471,450.5 But I've trouble to display like this $2,471,450.50
String.Format(culture, "{0:$#,#.##;($#,#.##)}", rdr.GetDecimal(10))
Solution
This is the correct expression. Changed # to 0. Thank you for your help.
String.Format(culture, "{0:$#,#.00;($#,#.##)}", rdr.GetDecimal(10))
Answered By - Partha Answer Checked By - Terry (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.