In my financial related application, Double use as the data type for currency data. but recently I found Double having issue while rounding.
As example inside a double variable
35.25 stored as 35.249999999999999999999
35.75 stored as 35.750000000000000000001
so when does it trying to round the number to one decimal point 35.25 = 35.3 35.75 = 35.8
It means one number round to ceiling other to floor.
Could anybody suggest a solution for this issue?
What is the suitable data type should use for currency data in Visual C++