Function
numAt
(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 | }; |
| 77 | const 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 | }; |
| 81 | const numOf = (boxed: any): number | null => { |
| 82 | try { const x = reOf(boxed.N()); return isFinite(x) ? x : null; } |
| 83 | catch { return null; } |
Tested by
no test coverage detected