Skip to content

Commit 925fba2

Browse files
committed
fix logic to squish small values
1 parent ea249b8 commit 925fba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboticstoolbox/bin/rtbtool

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ except ImportError:
4545
# setup defaults
4646
np.set_printoptions(
4747
linewidth=120,
48-
formatter={"float": lambda x: f"{x:8.4g}" if abs(x) > 1e-10 else f"{0:8.4g}"},
48+
formatter={"float": lambda x: f"{0:8.4g}" if abs(x) < 1e-10 else f"{x:8.4g}"},
4949
)
5050

5151
parser = argparse.ArgumentParser("Robotics Toolbox shell")

0 commit comments

Comments
 (0)