Sunday, June 1, 2014

how to display only two digit of number behind decimal point in textbox?

HI,


Let say ur long is saved in variable inputValue, here is what u need to do.



textbox1.Text = Math.Round(inputValue, 2).ToString();





Thanks!

Sundar

Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.


No comments:

Post a Comment