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

Method hold

src/compute-engine/index.ts:1793–1795  ·  view source on GitHub ↗

* Add a `["Hold"]` wrapper to `expr`.

(expr: ExpressionInput)

Source from the content-addressed store, hash-verified

1791 chop(n: BigDecimal): BigDecimal | 0;
1792 chop(n: Complex): Complex | 0;
1793 chop(n: number | BigDecimal | Complex): number | BigDecimal | Complex {
1794 const tolerance = this._numericConfiguration.tolerance;
1795 if (typeof n === 'number') {
1796 if (Math.abs(n) <= tolerance) return 0;
1797 return n;
1798 }

Callers

nothing calls this directly

Calls 2

_fnMethod · 0.95
exprMethod · 0.95

Tested by

no test coverage detected