Define v_rem_f as type f. Then do v_rem_f = v_rem. Use v_rem_f for your comparison and enclose all numbers that you are comparing with in quotes.
If your data is defined as character, the system will do a character comparison - not a numeric comparison.