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

Function numAt

benchmarks/audit/wester.ts:77–80  ·  view source on GitHub ↗
(engine: any, boxed: any, v: string, p: number)

Source from the content-addressed store, hash-verified

75 return Number(String(r?.toString() ?? '').split('±')[0].trim());
76};
77const numAt = (engine: any, boxed: any, v: string, p: number): number | null => {
78 try { const x = reOf(boxed.subs({ [v]: engine.number(p) }).N()); return isFinite(x) ? x : null; }
79 catch { return null; }
80};
81const numOf = (boxed: any): number | null => {
82 try { const x = reOf(boxed.N()); return isFinite(x) ? x : null; }
83 catch { return null; }

Callers 2

refSamplesFunction · 0.85
runOnFunction · 0.85

Calls 5

reOfFunction · 0.85
isFiniteFunction · 0.85
NMethod · 0.65
subsMethod · 0.65
numberMethod · 0.65

Tested by

no test coverage detected