Balancing truncation and round-off errors in FEM