Converts a length to the requested unit
Length to be converted
Unit of the length
Unit to convert the length to
if the given length is negative