I am trying to perform division and multiplication between two values and then save them in a double variable.
Multiplication is working fine but division always returning zero ?
Why is it so ?
Here is my Code :
double max_load =(Convert.ToDouble(ddl_gene_desc.SelectedValue)*0.8)*(80/100);
I checked it using the breakpoint that multiplication is fine but (80/100) returning 0.
Can any one please help me ?
Thanks in advance.