Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/java.base/share/classes/java/math/BigDecimal.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
* considers members of the same cohort to be equal to each other. In
* contrast, the {@link equals equals} method requires both the
* numerical value and representation to be the same for equality to
* hold. The results of methods like {@link scale} and {@link
* unscaledValue} will differ for numerically equal values with
* hold. The results of methods like {@link #scale()} and {@link
* #unscaledValue()} will differ for numerically equal values with
* different representations.
*
* <p>In general the rounding modes and precision setting determine
Expand Down Expand Up @@ -360,10 +360,10 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
private final BigInteger intVal;

/**
* The scale of this BigDecimal, as returned by {@link #scale}.
* The scale of this BigDecimal, as returned by {@link #scale()}.
*
* @serial
* @see #scale
* @see #scale()
*/
private final int scale; // Note: this may have any value, so
// calculations must be done in longs
Expand Down