how we can convert label text 400.0000 to 400.00
we want to convert label's text means lblvalue.text=400.0000 to lblvalue.text=400.00
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 26, 2014, 6:52 AM
Kunal VaishyaPosted Apr 26, 2014, 3:27 AM
Kunal VaishyaPosted Apr 26, 2014, 3:25 AM
String.Format("{0:.##}", value)
sudheer kumarPosted Apr 26, 2014, 3:16 AM
Kunal VaishyaPosted Apr 26, 2014, 3:10 AM
Your can use Math.Round() for this.
Regards,
Kunal