The code something as below:
private double val1;
private int val2 =9;
private void displayValue()
{
val1 = (val2/100);
text1.Text = val1.ToString("0.000");
}
I am trying to display the val1 value (which actually should be 0.09) but I always get result "0.000" display in my text1. Someone please help me on how to convert this.