CONVERSION_FACTORS
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/config/constants / CONVERSION_FACTORS
Variable: CONVERSION_FACTORS
constCONVERSION_FACTORS: {DECIMAL_PLACES:number;DECIMAL_PLACES_PRECISE:number;METERS_PER_KILOMETER:number;METERS_PER_MILE:number;METERS_TO_FEET:number;SECONDS_PER_HOUR:number;SECONDS_PER_MINUTE:number;MILLISECONDS_PER_SECOND:number;CELSIUS_TO_FAHRENHEIT_MULTIPLIER:number;CELSIUS_TO_FAHRENHEIT_OFFSET:number;MPS_TO_KMH:number;MPS_TO_MPH:number;KG_TO_POUNDS:number;METERS_TO_INCHES:number;INCHES_PER_FOOT:number; }
Defined in: utils/config/constants.js:37
Universal conversion factors used throughout the application
Type Declarationβ
DECIMAL_PLACESβ
DECIMAL_PLACES:
number=2
Decimal precision
DECIMAL_PLACES_PRECISEβ
DECIMAL_PLACES_PRECISE:
number=4
METERS_PER_KILOMETERβ
METERS_PER_KILOMETER:
number=1000
Distance conversions
METERS_PER_MILEβ
METERS_PER_MILE:
number=1609.344
METERS_TO_FEETβ
METERS_TO_FEET:
number=3.280_84
SECONDS_PER_HOURβ
SECONDS_PER_HOUR:
number=3600
Time conversions
SECONDS_PER_MINUTEβ
SECONDS_PER_MINUTE:
number=60
MILLISECONDS_PER_SECONDβ
MILLISECONDS_PER_SECOND:
number=1000
CELSIUS_TO_FAHRENHEIT_MULTIPLIERβ
CELSIUS_TO_FAHRENHEIT_MULTIPLIER:
number
Temperature conversions
CELSIUS_TO_FAHRENHEIT_OFFSETβ
CELSIUS_TO_FAHRENHEIT_OFFSET:
number=32
MPS_TO_KMHβ
MPS_TO_KMH:
number=3.6
Speed conversions
MPS_TO_MPHβ
MPS_TO_MPH:
number=2.237
KG_TO_POUNDSβ
KG_TO_POUNDS:
number=2.204_62
Weight conversions
METERS_TO_INCHESβ
METERS_TO_INCHES:
number=39.3701
Height conversions
INCHES_PER_FOOTβ
INCHES_PER_FOOT:
number=12