From 2d2f0947ac10d6e24ccc405448eb17e6642ea501 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 30 Sep 2023 19:18:30 +0200 Subject: [PATCH] Fixed frequency pretty print function --- RNS/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/__init__.py b/RNS/__init__.py index 8a55154..26f8717 100755 --- a/RNS/__init__.py +++ b/RNS/__init__.py @@ -188,7 +188,7 @@ def prettyfrequency(hz, suffix="Hz"): for unit in units: if abs(num) < 1000.0: if unit == "": - return "%.0f %s%s" % (num, unit, suffix) + return "%.2f %s%s" % (num, unit, suffix) else: return "%.2f %s%s" % (num, unit, suffix) num /= 1000.0