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

Function isZero

src/compute-engine/numerics/rationals.ts:23–26  ·  view source on GitHub ↗
(x: Rational)

Source from the content-addressed store, hash-verified

21}
22
23export function isZero(x: Rational): boolean {
24 // Note '==' to convert bigint to number
25 return x[0] == 0;
26}
27
28export function isPositive(x: Rational): boolean {
29 return x[0] > 0;

Callers 15

mulMethod · 0.90
boxFunctionFunction · 0.90
serializeJsonNumberFunction · 0.90
typeMethod · 0.90
toJSONMethod · 0.90
toStringMethod · 0.90
signMethod · 0.90
isZeroMethod · 0.90
sgnMethod · 0.90
negMethod · 0.90
invMethod · 0.90
absMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected