mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8213045: Add BigDecimal.TWO
Reviewed-by: darcy
This commit is contained in:
parent
8535d51db7
commit
1d8e92ae0d
2 changed files with 15 additions and 5 deletions
|
@ -416,6 +416,14 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||
public static final BigDecimal ONE =
|
||||
ZERO_THROUGH_TEN[1];
|
||||
|
||||
/**
|
||||
* The value 2, with a scale of 0.
|
||||
*
|
||||
* @since 19
|
||||
*/
|
||||
public static final BigDecimal TWO =
|
||||
ZERO_THROUGH_TEN[2];
|
||||
|
||||
/**
|
||||
* The value 10, with a scale of 0.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue