From e07235be5700110aec7645b0cd9a3d47c32c271b Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Mon, 10 Aug 2026 17:52:02 +0300 Subject: [PATCH] Round Gain value to fix formatting Limit significant digits to prevent breaking the output layout. --- rtscli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtscli.py b/rtscli.py index d5f5b1c..1070aed 100644 --- a/rtscli.py +++ b/rtscli.py @@ -77,7 +77,7 @@ def calculate_gain(price_in, current_price, shares): gain_per_share = float(current_price) - float(price_in) gain_percent = round(gain_per_share / float(price_in) * 100, 3) - return gain_per_share * int(shares), gain_percent + return round(gain_per_share * int(shares), 2), gain_percent def get_update(): results = []