mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8266578: Disambiguate BigDecimal description of scale
Reviewed-by: darcy, bpb
This commit is contained in:
parent
92ae6a5123
commit
1aef372ed8
1 changed files with 6 additions and 5 deletions
|
@ -38,11 +38,12 @@ import java.util.Objects;
|
||||||
* Immutable, arbitrary-precision signed decimal numbers. A {@code
|
* Immutable, arbitrary-precision signed decimal numbers. A {@code
|
||||||
* BigDecimal} consists of an arbitrary precision integer
|
* BigDecimal} consists of an arbitrary precision integer
|
||||||
* <i>{@linkplain unscaledValue() unscaled value}</i> and a 32-bit
|
* <i>{@linkplain unscaledValue() unscaled value}</i> and a 32-bit
|
||||||
* integer <i>{@linkplain scale() scale}</i>. If zero or positive,
|
* integer <i>{@linkplain scale() scale}</i>. If the
|
||||||
* the scale is the number of digits to the right of the decimal
|
* scale is zero or positive, the scale is the number of digits to
|
||||||
* point. If negative, the unscaled value of the number is multiplied
|
* the right of the decimal point. If the scale is negative, the
|
||||||
* by ten to the power of the negation of the scale. The value of the
|
* unscaled value of the number is multiplied by ten to the power of
|
||||||
* number represented by the {@code BigDecimal} is therefore
|
* the negation of the scale. The value of the number represented by
|
||||||
|
* the {@code BigDecimal} is therefore
|
||||||
* <code>(unscaledValue × 10<sup>-scale</sup>)</code>.
|
* <code>(unscaledValue × 10<sup>-scale</sup>)</code>.
|
||||||
*
|
*
|
||||||
* <p>The {@code BigDecimal} class provides operations for
|
* <p>The {@code BigDecimal} class provides operations for
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue