lior6543
January 16th, 2005, 02:46 PM
I added a double variable to a label in my form like this:
double dbVar;
System::Windows::Forms::Label * labelTotal;
labelTotal->Text = dbVar.ToString();
the code works fine but i got one question.
in case the value of dbVar is 5.43 it is ok.
but if it is 5 , i want it to be 5.00, how can i do this?
double dbVar;
System::Windows::Forms::Label * labelTotal;
labelTotal->Text = dbVar.ToString();
the code works fine but i got one question.
in case the value of dbVar is 5.43 it is ok.
but if it is 5 , i want it to be 5.00, how can i do this?