formatWeight
FitFileViewer - API Documentation v29.9.0
FitFileViewer - API Documentation / utils/formatting/formatters/formatWeight / formatWeight
Function: formatWeight()
formatWeight(
kg:number):string
Defined in: utils/formatting/formatters/formatWeight.js:29
Converts weight from kilograms to pounds with both metric and imperial display
Parametersβ
kgβ
number
Weight in kilograms
Returnsβ
string
Formatted weight string with both metric and imperial
Exampleβ
// Convert 70kg to imperial format
const weight = formatWeight(70); // "70 kg (154 lbs)"