8213045: Add BigDecimal.TWO

Reviewed-by: darcy
This commit is contained in:
Brian Burkhalter 2022-05-17 18:08:32 +00:00
parent 8535d51db7
commit 1d8e92ae0d
2 changed files with 15 additions and 5 deletions

View file

@ -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.
*