I want to limit the no of numbers shown in the below program. I get the result as 3.33333333333333E+15
But I want to display result variable as 3.333E+15 to match exactly as used in excel sheet.
Is there any other ways? i tried Math.Round also but its not fulfilling my requirement.
if (double.TryParse(value, out res)) //value=3333333333333333
{
double result = Math.Truncate(res*100/100); //result=3.33333333333333E+15
}