When I run this code:
Double test = (23.1d + 0.1d);
Log.i(Constants.TAG, "Test: " + test);
I get:
Test: 23.200000000000003
I need to add values that will at most have two decimals. For example 19.99 + 0.1 =20.09, how can I do it so that precision is not lost?