I'm new to Java. I'm creating small tool and I'm calculating using Bidecimal. I need to do this with bigdecimal. But I don't know how to do it?
balance= a%b;
Thanks in advance. FxMax
If you are asking for the actual operation to get a remainder of a BigDecimal, you want this:
import java.math.BigDecimal;
public static void main(String[] args){
BigDecimal a = new BigDecimal(10.05);
BigDecimal b = new BigDecimal(2.10);
BigDecimal result;
result = a.remainder(b);
System.out.printf("Here we are : %s", result);
}