We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea249b8 commit 925fba2Copy full SHA for 925fba2
roboticstoolbox/bin/rtbtool
@@ -45,7 +45,7 @@ except ImportError:
45
# setup defaults
46
np.set_printoptions(
47
linewidth=120,
48
- formatter={"float": lambda x: f"{x:8.4g}" if abs(x) > 1e-10 else f"{0:8.4g}"},
+ formatter={"float": lambda x: f"{0:8.4g}" if abs(x) < 1e-10 else f"{x:8.4g}"},
49
)
50
51
parser = argparse.ArgumentParser("Robotics Toolbox shell")
0 commit comments