wie man BigDecimals multipliziert
// Java program to demonstrate the
// multiply() method
import java.math.*;
public class gfg {
public static void main(String[] args)
{
// Assign two BigDecimal objects
BigDecimal b1 = new BigDecimal("54.2");
BigDecimal b2 = new BigDecimal("14.20");
// Multiply b1 with b2 and assign result to b3
BigDecimal b3 = b1.multiply(b2);
// Print b3 value
System.out.println("Multiplication is " + b3);
}
}
Blue-eyed Boar