working nega -> dec and dec -> nega