How do I do simple math jobs with varaible type double

I want to do this

double i;

i = i*2;

question how do i do this simple math calculation???????

I want to do this

double i;

i = i*2;

question how do i do this simple math calculation???????