Format String for double value

if we use String.Format(“{0:0,0.00”, value) (assume value is 4.55), the result is 04.55

=> String.Format(“{0:#,#.##}”,value) , the result is 4.55

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s