The time for positioning of a machine under numerical control is determined so that the positioning is finished at the moment when the amplitude of vibration of the machine is reduced to zero. In the thus predetermined time at least accelerating control and decelerating control are conducted to achieve control for positioning the machine at a commanded position.