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