I have this code to round some value. I am using Math.Round() for the same.
double h = 128.015999031067;
double d = Math.Round(h, 3) * 1000;
result is 128015.99999999999
if I write it to console it gives me 128016
. I want the value to be 128016
Am I missing any type conversions? Or there is some other way of doing this?