I hate to ask such a dumb question, but I’m just starting out, so here goes.
myString = "2 to 2.5 power is " + Math.Pow(2, 2.5);
I want to format the resulting number to 4 decimal places and show the string in a MessageBox. I can’t seem to figure this out or find the answer in the book. Thanks!
The ToString method should do the trick. You might need to look it up in the MSDN to find more formatting options.