Can anyone show me how to make a double convert to an integer, and ALSO display as an integer. (I have also tried the Convert.Int32 way of doing it and that had same results.) Right now it is:
-Variables:
private double cciValue = 0;
-Performed every tick update after "Period" number of bars:
cciValue = (int)cciData[0];
-Down where it actually asks for it to display:
graphics.DrawString(cciValue.ToString("f2"),
Is there something different than "f2" that I can insert to try to make it display just the integer without decimals?
I can't understand the syntax on the various websites that suggest {0:n} and the like.
Comment