I am trying to divide the change owed by 1 to figure out how many dollars are owned. So if 3.60 is owed I want to divide that by 1 but I used BigDecimal to collect the change variable and can’t figure out how to divide it by 1.
This is the code I have tried but it’s not working. I needed to use BigDecimal for round off errors but I also need to use that value with int values.
BigDecimal Dollars = (Change.divide(1));