Algebraic approximation preserving dimension