🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › math › BigDecimal.html
BigDecimal (Java Platform SE 8 )
July 21, 2026 - Java™ Platform Standard Ed. 8 ... Immutable, arbitrary-precision signed decimal numbers. A BigDecimal consists of an arbitrary precision integer unscaled value and a 32-bit integer scale. If zero or positive, the scale is the number of digits to the right of the decimal point.
🌐
Oracle
docs.oracle.com › javase › 7 › docs › api › java › math › BigDecimal.html
BigDecimal (Java Platform SE 7 )
Java™ Platform Standard Ed. 7 ... Immutable, arbitrary-precision signed decimal numbers. A BigDecimal consists of an arbitrary precision integer unscaled value and a 32-bit integer scale. If zero or positive, the scale is the number of digits to the right of the decimal point.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › math › class-use › BigDecimal.html
Uses of Class java.math.BigDecimal (Java Platform SE 8 )
July 21, 2026 - Java™ Platform Standard Ed. 8 ... Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working ...
🌐
Oracle
docs.oracle.com › en › java › javase › 13 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 13 & JDK 13 )
Converts this BigDecimal to an int. This conversion is analogous to the narrowing primitive conversion from double to short as defined in The Java™ Language Specification: any fractional part of this BigDecimal will be discarded, and if the resulting "BigInteger" is too big to fit in an int, only the low-order 32 bits are returned.
🌐
Oracle
docs.oracle.com › en › java › javase › 17 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 17 & JDK 17)
April 21, 2026 - Converts this BigDecimal to an int. This conversion is analogous to the narrowing primitive conversion from double to short as defined in The Java Language Specification: any fractional part of this BigDecimal will be discarded, and if the resulting "BigInteger" is too big to fit in an int, only the low-order 32 bits are returned.
🌐
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 11 & JDK 11 )
January 20, 2026 - Converts this BigDecimal to an int. This conversion is analogous to the narrowing primitive conversion from double to short as defined in The Java™ Language Specification: any fractional part of this BigDecimal will be discarded, and if the resulting "BigInteger" is too big to fit in an int, only the low-order 32 bits are returned.
🌐
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › math › class-use › BigDecimal.html
Uses of Class java.math.BigDecimal (Java SE 11 & JDK 11 )
January 20, 2026 - Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › › java.base › java › math › class-use › BigDecimal.html
Uses of Class java.math.BigDecimal (Java SE 21 & JDK 21)
January 20, 2026 - Returns a BigDecimal whose value is (this - subtrahend), with rounding according to the context settings. ... Retrieves the value of the designated JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.
🌐
Oracle
docs.oracle.com › en › java › javase › 25 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 25 & JDK 25)
July 21, 2026 - Immutable, arbitrary-precision signed decimal numbers. A BigDecimal consists of an arbitrary precision integer unscaled value and a 32-bit integer scale. If the scale is zero or positive, the scale is the number of digits to the right of the decimal point. If the scale is negative, the unscaled ...
Find elsewhere
🌐
Oracle
docs.oracle.com › en › java › javase › 27 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 27 & JDK 27)
September 14, 2026 - Immutable, arbitrary-precision signed decimal numbers. A BigDecimal consists of an arbitrary precision integer unscaled value and a 32-bit integer scale. If the scale is zero or positive, the scale is the number of digits to the right of the decimal point. If the scale is negative, the unscaled ...
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 21 & JDK 21)
January 20, 2026 - Converts this BigDecimal to an int. This conversion is analogous to the narrowing primitive conversion from double to short as defined in The Java Language Specification: any fractional part of this BigDecimal will be discarded, and if the resulting "BigInteger" is too big to fit in an int, only the low-order 32 bits are returned.
🌐
IONOS
ionos.com › digital guide › websites › web development › java class: bigdecimal
How to use Java BigDecimal to display floating point numbers
July 26, 2024 - Java BigDec­i­mal consists of a 32-bit integer scale and an unscaled integer value with optional precision. In this case, “scale” means the number of digits after the decimal point, provided they’re greater than or equal to zero.
🌐
Piotr Horzycki
peterdev.pl › all-you-need-to-know-about-javas-bigdecimal
All you need to know about Java’s BigDecimal | Piotr Horzycki - Java and PHP developer’s blog
February 11, 2021 - By default, BigDecimal numbers have “unlimited” precision. In fact, the maximum unscaled value is equal to 2^Integer.MAX_VALUE, according to the BigInteger documentation.
🌐
Tutorialspoint
tutorialspoint.com › java › math › java_math_bigdecimal.htm
Java.math.BigDecimal Class
The java.math.BigDecimal class provides operations for arithmetic, scale manipulation, rounding, comparison, hashing, and format conversion. The toString() method provides a canonical representation of a BigDecimal.
🌐
Baeldung
baeldung.com › home › java › java numbers › bigdecimal and biginteger in java
BigDecimal and BigInteger in Java | Baeldung
December 16, 2024 - BigDecimal is a special class in Java used to represent numbers with a high degree of precision.
🌐
Codementor
codementor.io › community › bigdecimal class in java
BigDecimal Class in Java | Codementor
June 23, 2024 - You'll also learn some operations ... traditional Double class. According to its Javadoc, a BigDecimal represents an immutable, arbitrary-precision decimal number....
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › java.math.bigdecimal
BigDecimal Class (Java.Math) | Microsoft Learn
If negative, the unscaled value of the number is multiplied by ten to the power of the negation of the scale. The value of the number represented by the BigDecimal is therefore (unscaledValue &times; 10<sup>-scale</sup>).
🌐
GeeksforGeeks
geeksforgeeks.org › java › bigdecimal-class-java
BigDecimal Class in Java - GeeksforGeeks
March 8, 2024 - A BigDecimal consists of a random precision integer unscaled value and a 32-bit integer scale. If greater than or equal to zero, the scale is the number of digits to the right of the decimal point.
🌐
Columbia University
columbia.edu › cu › help › jdk › docs › api › java.math.BigDecimal.html
Class java.math.BigDecimal
Constructs a BigDecimal from a string containing an optional minus sign followed by a sequence of zero or more decimal digits, optionally followed by a fraction, which consists of a decimal point followed by zero or more decimal digits.
🌐
CodeGym
codegym.cc › java blog › java numbers › bigdecimal in java
BigDecimal in Java
January 15, 2025 - Just use the add() method. import java.math.BigDecimal; public class BigDecimalAddition { public static void main(String[] args) { BigDecimal num1 = new BigDecimal("15.75"); BigDecimal num2 = new BigDecimal("24.25"); BigDecimal result = ...