Skip to main content

Variable: CONVERSION_FACTORS

const CONVERSION_FACTORS: {
CELSIUS_TO_FAHRENHEIT_MULTIPLIER: number;
CELSIUS_TO_FAHRENHEIT_OFFSET: 32;
DECIMAL_PLACES: 2;
DECIMAL_PLACES_PRECISE: 4;
INCHES_PER_FOOT: 12;
KG_TO_POUNDS: 2.20462;
METERS_PER_KILOMETER: 1000;
METERS_PER_MILE: 1609.344;
METERS_TO_FEET: 3.28084;
METERS_TO_INCHES: 39.3701;
MILLISECONDS_PER_SECOND: 1000;
MPS_TO_KMH: 3.6;
MPS_TO_MPH: 2.237;
SECONDS_PER_HOUR: 3600;
SECONDS_PER_MINUTE: 60;
};

Defined in: utils/config/constants.ts:4

Universal conversion factors used throughout the application.

Type Declaration​

CELSIUS_TO_FAHRENHEIT_MULTIPLIER​

readonly CELSIUS_TO_FAHRENHEIT_MULTIPLIER: number;

CELSIUS_TO_FAHRENHEIT_OFFSET​

readonly CELSIUS_TO_FAHRENHEIT_OFFSET: 32 = 32;

DECIMAL_PLACES​

readonly DECIMAL_PLACES: 2 = 2;

DECIMAL_PLACES_PRECISE​

readonly DECIMAL_PLACES_PRECISE: 4 = 4;

INCHES_PER_FOOT​

readonly INCHES_PER_FOOT: 12 = 12;

KG_TO_POUNDS​

readonly KG_TO_POUNDS: 2.20462 = 2.204_62;

METERS_PER_KILOMETER​

readonly METERS_PER_KILOMETER: 1000 = 1000;

METERS_PER_MILE​

readonly METERS_PER_MILE: 1609.344 = 1609.344;

METERS_TO_FEET​

readonly METERS_TO_FEET: 3.28084 = 3.280_84;

METERS_TO_INCHES​

readonly METERS_TO_INCHES: 39.3701 = 39.3701;

MILLISECONDS_PER_SECOND​

readonly MILLISECONDS_PER_SECOND: 1000 = 1000;

MPS_TO_KMH​

readonly MPS_TO_KMH: 3.6 = 3.6;

MPS_TO_MPH​

readonly MPS_TO_MPH: 2.237 = 2.237;

SECONDS_PER_HOUR​

readonly SECONDS_PER_HOUR: 3600 = 3600;

SECONDS_PER_MINUTE​

readonly SECONDS_PER_MINUTE: 60 = 60;