convertUnit = (val, unit) => {
  unit = unit || elementContainer_.getBaseUnit()
  // baseVal.convertToSpecifiedUnits(unitNumMap[unit]);
  // const val = baseVal.valueInSpecifiedUnits;
  // baseVal.convertToSpecifiedUnits(1);
  return shortFloat(val / typeMap_[unit])
}
Converts the number to given unit or baseUnit.
@function module:units.convertUnit
@param {string|Float} val
@param {"em"|"ex"|"in"|"cm"|"mm"|"pt"|"pc"|"px"|"%"} [unit]
@returns {Float}