math: duplicate _get_value() into _get_rl()