Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  
java.math
  
  
  
    Classes
    
  
  
    
      
        | BigDecimal | Immutable, arbitrary-precision signed decimal numbers. | 
      
    
      
        | BigInteger | Immutable arbitrary-precision integers. | 
      
    
      
        | MathContext | Immutable objects which encapsulate the context settings which
 describe certain rules for numerical operators, such as those
 implemented by the BigDecimalclass. | 
      
    
  
  
  
    Enums
    
  
  
    
      
        | RoundingMode | Specifies a rounding policy for numerical operations capable
 of discarding precision. | 
      
    
  
  
  
  
 
 
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]