Skip to content

Commit b7ac235

Browse files
committed
update Java version
1 parent 1e67393 commit b7ac235

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

src/main/java/com/upokecenter/numbers/EDecimal.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3226,6 +3226,20 @@ public EDecimal RoundToExponentExact(
32263226
return this.RoundToExponentExact(EInteger.FromInt32(exponentSmall), ctx);
32273227
}
32283228

3229+
/**
3230+
*
3231+
* @deprecated This overload is unnecessary because this method works regardless of
3232+
* rounding mode.
3233+
*/
3234+
@Deprecated
3235+
public EDecimal RoundToExponentExact(
3236+
int exponentSmall,
3237+
ERounding rounding) {
3238+
return this.RoundToExponentExact(
3239+
EInteger.FromInt32(exponentSmall),
3240+
EContext.Unlimited);
3241+
}
3242+
32293243
/**
32303244
* Returns a decimal number with the same value as this object but rounded to
32313245
* an integer, and signals an invalid operation if the result would be
@@ -3424,7 +3438,9 @@ public EDecimal Sqrt(EContext ctx) {
34243438
* number, but the return value is still NaN). Signals FlagInvalid and
34253439
* returns not-a-number (NaN) if the parameter {@code ctx} is null or
34263440
* the precision is unlimited (the context's Precision property is 0).
3427-
*/
3441+
* @deprecated Renamed to Sqrt.
3442+
*/
3443+
@Deprecated
34283444
public EDecimal SquareRoot(EContext ctx) {
34293445
return GetMathValue(ctx).SquareRoot(this, ctx);
34303446
}

src/main/java/com/upokecenter/numbers/EFloat.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2072,6 +2072,18 @@ public EFloat RoundToExponentExact(
20722072
return MathValue.RoundToExponentExact(this, exponent, ctx);
20732073
}
20742074

2075+
/**
2076+
*
2077+
* @deprecated This overload is unnecessary because this method works regardless of
2078+
* rounding mode.
2079+
*/
2080+
@Deprecated
2081+
public EFloat RoundToExponentExact(
2082+
EInteger exponent,
2083+
ERounding rounding) {
2084+
return MathValue.RoundToExponentExact(this, exponent, EContext.Unlimited);
2085+
}
2086+
20752087
/**
20762088
* Returns a binary number with the same value as this object but rounded to
20772089
* the given exponent, and signals an invalid operation if the result
@@ -2288,7 +2300,9 @@ public EFloat Sqrt(EContext ctx) {
22882300
* number, but the return value is still NaN).
22892301
* @throws IllegalArgumentException The parameter {@code ctx} is null or the
22902302
* precision is unlimited (the context's Precision property is 0).
2291-
*/
2303+
* @deprecated Renamed to Sqrt.
2304+
*/
2305+
@Deprecated
22922306
public EFloat SquareRoot(EContext ctx) {
22932307
return MathValue.SquareRoot(this, ctx);
22942308
}

0 commit comments

Comments
 (0)