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

Function getUnitScale

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

Source from the content-addressed store, hash-verified

309
310// ---------------------------------------------------------------------------
311// Public API
312// ---------------------------------------------------------------------------
313
314/**
315 * Return the dimension vector for `symbol`, or `null` if unknown.
316 *
317 * Handles direct units (m, kg, N, ...) and prefixed units (km, MHz, ...).

Callers 3

units.test.tsFile · 0.90
angularQuantityToRadiansFunction · 0.90
getExpressionScaleFunction · 0.85

Calls 1

resolveUnitFunction · 0.85

Tested by

no test coverage detected