Hi I have to achieve "rounded up to the nearest 0.05".
For this I have an amount(double), and I am taking a remaider of amount % .05. Then if the remainder is less than .025 I am subtracting the remainder else I am adding (.05 - remainder), to round it off. so the final answer should be an integer multiple of .05.
But the problem I am facing is the answer of 2.5533%.05 is coming as 0.0032999999999999835, and not .0033. can somebody tell me what is the problem?