MCPcopy
hub / github.com/redpanda-data/console / isInfinite

Function isInfinite

frontend/src/utils/utils.ts:599–599  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

597const isM = between(ONE_MILLION, ONE_BILLION);
598
599const isInfinite = (num: number) => !Number.isFinite(num);
600const toK = (num: number) => `${(num / ONE_THOUSAND).toFixed(1)}k`;
601const toM = (num: number) => `${(num / ONE_MILLION).toFixed(1)}m`;
602const toG = (num: number) => `${(num / ONE_BILLION).toFixed(1)}g`;

Callers 1

prettyNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…