MCPcopy Create free account
hub / github.com/SeanDragon/protools / sqrtN

Method sqrtN

common/src/main/java/pro/tools/data/decimal/Decimal.java:243–247  ·  view source on GitHub ↗

开N次方 @param n 几次方 @return 结果

(int n)

Source from the content-addressed store, hash-verified

241 * @return 结果
242 */
243 public Decimal sqrtN(int n) {
244 double log = Math.pow(this.doubleValue(), 1D / n);
245 this.bigDecimal = new BigDecimal(log, mathContext);
246 return this;
247 }
248
249 //endregion
250

Callers

nothing calls this directly

Calls 2

doubleValueMethod · 0.95
powMethod · 0.80

Tested by

no test coverage detected