def to(self, unit):
u = Unit("<STR_LIT>")<EOL>u.value = self.value/self.per_inch[self.unit]*self.per_inch[unit]<EOL>u.unit = unit<EOL>return u<EOL>
Convert to a given unit.

        Parameters
        ----------
        unit : str
           Name of the unit to convert to.

        Returns
        -------
        u : Unit
            new Unit object with the requested unit and computed value.