to

The to() method of the CSSNumericValue interface converts a numeric value from one unit to another.

MDN Reference