Advertisement
CR7CR7

applyOfBigInteger

Jun 13th, 2023
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. import java.math.BigDecimal;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         BigDecimal num1 = new BigDecimal("1.23");
  6.         BigDecimal num2 = new BigDecimal("1.00");
  7.         BigDecimal result = num1.subtract(num2);
  8.         System.out.println(result); // извежда 0.23
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement