I have two numbers, 1.4350 and 1.4300. When I subtract them, instead of returning 0.0050, I’m looking to get 50. It also needs to work with 90.25 and 90.10, returning 15.
I have two numbers, 1.4350 and 1.4300 . When I subtract them, instead of
Share
You can use
BigDecimal.unscaledValue(). This will return what you want as a BigInteger.