Package io.deephaven.util
Class BigDecimalUtils
java.lang.Object
io.deephaven.util.BigDecimalUtils
Computes the square root of a BigDecimal using Babylonian method.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimal
sqrt
(BigDecimal x, int scale) Uses Babylonian method to determine the square root of a BigDecimal
-
Constructor Details
-
BigDecimalUtils
public BigDecimalUtils()
-
-
Method Details
-
sqrt
Uses Babylonian method to determine the square root of a BigDecimal- Parameters:
x
- the number to find the square root ofscale
- the desired scale for division and epsilon- Returns:
- the square root of x
-