I have problem with calculation of these numbers. When I muliply 90000*.35 I get a value with decimals not the expected result, but the same if I do with 90000*.45 I get the correct output. Then again I have done similar calculation with 90000*.55 again I got wrong value(not the expected). We have tried one more combination of the decimal mulitplication .35 with 70000 which it gave the right result.
Can I know what could be the reason for this mismatch.
Not yet tried using BigDecimal. Now the code which we have already been deployed in Production is using with double. We used double because it gives higher precission. But here it is creating problem. Problems like coming up less than 1 or more than 1 errors are coming.
BigDecimal will it solve this problem. BigDecimal can it be used for Arithmatic operation without any problem?