From dde3b49b13ac3e6eacc1133fe44e83ddbf6d8042 Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Tue, 25 Oct 2022 09:21:46 +0200 Subject: [PATCH] Add note on python round(). --- libraries/base/common/python/try_round.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/base/common/python/try_round.py b/libraries/base/common/python/try_round.py index 7de2e47c1f..0959b31a66 100755 --- a/libraries/base/common/python/try_round.py +++ b/libraries/base/common/python/try_round.py @@ -40,6 +40,10 @@ import matplotlib.pylab as plt Usage: > python try_round.py -h +Note: +. For values exactly halfway between rounded decimal values, NumPy rounds to + the nearest even value. Thus 1.5 and 2.5 round to 2.0, -0.5 and 0.5 round + to 0.0, etc. """ import argparse -- GitLab