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

Function isNonZero

src/compute-engine/library/arithmetic.ts:1291–1294  ·  view source on GitHub ↗
(x: Expression)

Source from the content-addressed store, hash-verified

1289 const valueOf = (r: Expression): Expression | undefined => {
1290 const exact = r.evaluate();
1291 if (isExactRealLiteral(exact)) return exact.N();
1292 if (!isExactConstantExpression(exact)) return undefined;
1293 const value = exactConstantValue(exact);
1294 return value === undefined ? undefined : ce.number(ce._numericValue(value));
1295 };
1296 const oa = originalOperand(expression, 0);
1297 const om = originalOperand(expression, 1);

Callers 2

arithmetic.tsFile · 0.85
isFiniteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected