log and exp methods to deal with uom