convertToSpecifiedUnits

The convertToSpecifiedUnits() method of the SVGLength interface allows you to convert the length's value to the specified unit type.

MDN Reference