diff --git a/gymnasium/envs/box2d/lunar_lander.py b/gymnasium/envs/box2d/lunar_lander.py index 4aeff6ac9..976647b15 100644 --- a/gymnasium/envs/box2d/lunar_lander.py +++ b/gymnasium/envs/box2d/lunar_lander.py @@ -509,7 +509,7 @@ def step(self, action): ) if self.continuous: - action = np.clip(action, -1, +1).astype(np.float32) + action = np.clip(action, -1, +1).astype(np.float64) else: assert self.action_space.contains( action