MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / num

Function num

benchmarks/runners/run_ce.mjs:60–63  ·  view source on GitHub ↗
(boxed)

Source from the content-addressed store, hash-verified

58
59const input = kase.inputs.ce;
60const num = (boxed) => {
61 const v = boxed.N();
62 return typeof v.re === 'number' ? v.re : Number(v.toString());
63};
64
65// Numeric real parts of a list of boxed roots, keeping only the (near-)real
66// ones. A complex root's `.N()` exposes `.im`; we drop |im| above a tolerance.

Callers 1

run_ce.mjsFile · 0.70

Calls 2

NMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected