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