C#NET2008 Display Double Numeric value on TEXTBOX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lenniekuah
    New Member
    • Oct 2006
    • 126

    C#NET2008 Display Double Numeric value on TEXTBOX

    Hullo Good Friends,
    I need your help. Please help me.

    I encountered problem trying to display a variable of Double numeric type on the TextBox and it's display 20 instead of 20.05.

    Here are the coding using C#NET2008 on Window Application:
    Code:
    {
      Double dblExtPrice = 20.05;
      this.txtExtendPrice.Text = Convert.Tostring(dblExtPrice);
    }
    Instead of display on the textbox as 20.05 it display 20

    Thank you for helping me.
    Cheers,
    Lennie
  • vivek kapile
    New Member
    • Mar 2011
    • 17

    #2
    Hi Lennie

    This is working fine. I have tried on system.
    only you missed Convert.ToStrin g(dblExtPrice)
    "S" should be capital letter

    Thanks
    Vivek

    Comment

    Working...