MCPcopy Create free account
hub / github.com/cpaczek/skylight / formatSpeed

Function formatSpeed

shared/src/format.ts:27–29  ·  view source on GitHub ↗
(gsKnots: number, unit: SpeedUnit)

Source from the content-addressed store, hash-verified

25
26/** Format a ground speed (knots in) as a rounded, unit-suffixed string. */
27export function formatSpeed(gsKnots: number, unit: SpeedUnit): string {
28 return `${Math.round(convertSpeed(gsKnots, unit))} ${SPEED_SUFFIX[unit]}`;
29}

Callers 3

format.test.tsFile · 0.85
labelLinesFunction · 0.85
drawDetailPanelTextMethod · 0.85

Calls 1

convertSpeedFunction · 0.85

Tested by

no test coverage detected