Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.BigDecimal;
- public class Main {
- public static void main(String[] args) {
- BigDecimal num1 = new BigDecimal("1.23");
- BigDecimal num2 = new BigDecimal("1.00");
- BigDecimal result = num1.subtract(num2);
- System.out.println(result); // извежда 0.23
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement