1.When both operands are integer the results will be computed as integer (so without any decimals), then the final result will be converted to double.
2.The solution is to use variable of type
double
and then you could use
Math.Round()
in order to get as many decimal you wanted like in the next example:
double value = Math.Round(result / 10000.0, 2);