math: move absolute min/max code from _get_value() to _get_rl()