130 double old_factor =
getUnit()->factor;
131 if (old_unit_abbr !=
"no_unit") {
132 old_factor = unit_table.getUnit(old_unit_abbr)->factor;
134 Unit const * new_unit = unit_table.getUnit(new_unit_abbr);
137 if (old_factor < 0.0000001 ||
138 new_unit->factor < 0.0000001) {
143 return old_factor / new_unit->factor;