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

Function getUnitDimension

src/compute-engine/numerics/unit-data.ts:297–300  ·  view source on GitHub ↗
(symbol: string)

Source from the content-addressed store, hash-verified

295 return null;
296}
297
298/**
299 * Resolve a unit symbol — first by direct table lookup, then by prefix
300 * parsing. Returns a synthetic `UnitEntry` (dimension + effective scale)
301 * or `null` for unknown symbols.
302 */
303function resolveUnit(symbol: string): UnitEntry | null {

Callers 5

units.test.tsFile · 0.90
resolveUnitTextFunction · 0.90
isValidUnitExpressionFunction · 0.90
areCompatibleUnitsFunction · 0.85
getExpressionDimensionFunction · 0.85

Calls 1

resolveUnitFunction · 0.85

Tested by

no test coverage detected