🌐
Medium
medium.com › @skywalkerhunter › fix-divide-java-math-bigdecimal-int-in-java-math-bigdecimal-has-been-deprecated-and-why-22fe83b07e9
Fix — divide(java.math.BigDecimal,int) in ...
July 18, 2020 - Warning: java: divide(java.math.BigDecimal,int) in java.math.BigDecimal has been deprecated · Warning: java: setScale(int,int) in java.math.BigDecimal has been deprecated · Warning: java: ROUND_HALF_UP in java.math.BigDecimal has been deprecated ...
🌐
Oracle
docs.oracle.com › javase › 9 › docs › api › java › math › BigDecimal.html
BigDecimal (Java SE 9 & JDK 9 )
Returns a BigDecimal whose value ... is inexact but the rounding mode is UNNECESSARY. ... Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method....
🌐
Oracle
docs.oracle.com › en › java › javase › 22 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 22 & JDK 22)
July 16, 2024 - Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
🌐
Android Developers
developer.android.com › sdk › api_diff › 33 › changes › java.math.BigDecimal
java.math.BigDecimal - Android Developers
JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.
🌐
Oracle
docs.oracle.com › javase › 9 › docs › api › › › java › math › class-use › BigDecimal.html
Uses of Class java.math.BigDecimal (Java SE 9 & JDK 9 )
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 › 17 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 17 & JDK 17)
April 21, 2026 - Returns a BigDecimal whose value is (this × multiplicand), with rounding according to the context settings. ... Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
🌐
OpenJDK
bugs.openjdk.org › browse › CCC-4943627
Deprecate rounding mode integer constants in BigDecimal ...
* - * <p>The new {@link #divide(BigDecimal, RoundingMode)} method + * @deprecated The method {@link #divide(BigDecimal, RoundingMode)} * should be used in preference to this legacy method. * * @param divisor value by which this {@code BigDecimal} is to be divided.
🌐
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 › 27 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 27 & JDK 27)
September 14, 2026 - Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
Find elsewhere
🌐
Oracle
docs.oracle.com › en › java › javase › 26 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 26 & JDK 26)
March 16, 2026 - Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
🌐
Oracle
docs.oracle.com › en › java › javase › 23 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 23 & JDK 23)
October 17, 2024 - Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
🌐
Oracle
docs.oracle.com › en › java › javase › 24 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 24 & JDK 24)
July 15, 2025 - Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
🌐
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 - Returns a BigDecimal whose value ... is inexact but the rounding mode is UNNECESSARY. ... Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method....
🌐
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 - Returns a BigDecimal whose value is (this × multiplicand), with rounding according to the context settings. ... Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
🌐
Android Developers
developer.android.com › api reference › bigdecimal
BigDecimal  |  API reference  |  Android Developers
Skip to main content · English · Deutsch · Español – América Latina · Français · Indonesia · Polski · Português – Brasil · Tiếng Việt · 中文 – 简体
🌐
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 - Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.
🌐
GeeksforGeeks
geeksforgeeks.org › java › bigdecimal-divide-method-in-java-with-examples
BigDecimal divide() Method in Java with Examples - GeeksforGeeks
July 12, 2025 - Return value: This method returns a BigDecimal which holds the result (this / divisor) and rounded as necessary. Exception: The method throws Arithmetic Exception if the result is inexact but the rounding mode is UNNECESSARY or mc.precision == 0 and the quotient has a non-terminating decimal expansion. Below programs is used to illustrate the divide() method of BigDecimal.
🌐
Oracle
docs.oracle.com › en › java › javase › 18 › docs › api › java.base › java › math › BigDecimal.html
BigDecimal (Java SE 18 & JDK 18)
August 18, 2022 - Returns a BigDecimal whose value is (this × multiplicand), with rounding according to the context settings. ... Deprecated. The method divide(BigDecimal, int, RoundingMode) should be used in preference to this legacy method.