Convert Double to String

Yesterday night I spent way to long (at least 3 hours) trying to get a label to display “1.2″.  Finally the LORD showed me the proper way on doing this.

 Instead of:

double x = 6/5;
lblLabel.Text = Convert.ToString(x);

I have to do this else the value of x will be 1.

double x = 6.0/5.0;
lblLabel.Text = Convert.ToString(x);

Hallelujah!  Learned something new.  In addition, I got more ideas for “Tapper” and talked with Mrs. Ginnette Serrano-Correa about methods on achieving goals of that program.  In addition I met Carol and Andy and found out about a Mr. Crawford in E220 who does Game Design which may be able to help out with some more ideas.

Leave a Reply

You must be logged in to post a comment.