72
java math.BigDecimal.add() method
The java.math.BigDecimal.divide() method is used to add the BigDecimal object .
Syntax
Example 1
Output:
Enter first and Second number: 25 5 Addition is=30
Example 2
Output:
Enter first and Second number: 25 5 Addition is=30
Example 3
Output:
Enter first and Second number: 1 2 Addition is=3
Next TopicJava Math