MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / #div

Method #div

lib.commonjs/utils/fixednumber.js:299–305  ·  view source on GitHub ↗
(o, safeOp)

Source from the content-addressed store, hash-verified

297 return this.#checkValue(value / this.#tens, "mulSignal");
298 }
299 #div(o, safeOp) {
300 (0, errors_js_1.assert)(o.#val !== BN_0, "division by zero", "NUMERIC_FAULT", {
301 operation: "div", fault: "divide-by-zero", value: this
302 });
303 this.#checkFormat(o);
304 return this.#checkValue((this.#val * this.#tens) / o.#val, safeOp);
305 }
306 /**
307 * Returns a new [[FixedNumber]] with the result of %%this%% divided
308 * by %%other%%, ignoring underflow (precision loss). A

Callers 2

divUnsafeMethod · 0.95
divMethod · 0.95

Calls 2

#checkFormatMethod · 0.95
#checkValueMethod · 0.95

Tested by

no test coverage detected