diff --git a/jdk/src/share/classes/java/math/BigDecimal.java b/jdk/src/share/classes/java/math/BigDecimal.java index d2a44922378..944f8a79fbe 100644 --- a/jdk/src/share/classes/java/math/BigDecimal.java +++ b/jdk/src/share/classes/java/math/BigDecimal.java @@ -2572,6 +2572,9 @@ public class BigDecimal extends Number implements Comparable { * ({@code this} * 10n). The scale of * the result is {@code (this.scale() - n)}. * + * @param n the exponent power of ten to scale by + * @return a BigDecimal whose numerical value is equal to + * ({@code this} * 10n) * @throws ArithmeticException if the scale would be * outside the range of a 32-bit integer. * diff --git a/jdk/src/share/classes/java/math/RoundingMode.java b/jdk/src/share/classes/java/math/RoundingMode.java index 69994a4c316..41493a200e2 100644 --- a/jdk/src/share/classes/java/math/RoundingMode.java +++ b/jdk/src/share/classes/java/math/RoundingMode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -101,6 +101,7 @@ public enum RoundingMode { * *

Example: * + * * * @@ -124,6 +125,7 @@ public enum RoundingMode { * *

Example: *

Rounding mode UP Examples
Input NumberInput rounded to one digit
with {@code UP} rounding *
5.5 6
+ * * * @@ -148,6 +150,7 @@ public enum RoundingMode { * *

Example: *

Rounding mode DOWN Examples
Input NumberInput rounded to one digit
with {@code DOWN} rounding *
5.5 5
+ * * * @@ -172,6 +175,7 @@ public enum RoundingMode { * *

Example: *

Rounding mode CEILING Examples
Input NumberInput rounded to one digit
with {@code CEILING} rounding *
5.5 6
+ * * * @@ -198,6 +202,7 @@ public enum RoundingMode { * *

Example: *

Rounding mode FLOOR Examples
Input NumberInput rounded to one digit
with {@code FLOOR} rounding *
5.5 5
+ * * * @@ -223,6 +228,7 @@ public enum RoundingMode { * *

Example: *

Rounding mode HALF_UP Examples
Input NumberInput rounded to one digit
with {@code HALF_UP} rounding *
5.5 6
+ * * * @@ -255,6 +261,7 @@ public enum RoundingMode { * *

Example: *

Rounding mode HALF_DOWN Examples
Input NumberInput rounded to one digit
with {@code HALF_DOWN} rounding *
5.5 5
+ * * * @@ -278,6 +285,7 @@ public enum RoundingMode { * {@code ArithmeticException} is thrown. *

Example: *

Rounding mode HALF_EVEN Examples
Input NumberInput rounded to one digit
with {@code HALF_EVEN} rounding *
5.5 6
+ * * *
Rounding mode UNNECESSARY Examples
Input NumberInput rounded to one digit
with {@code UNNECESSARY} rounding *
5.5 throw {@code ArithmeticException}