From ad31631a8f2d227e79ba58542277d11865010094 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 20 Jun 2023 12:37:48 -0400 Subject: [PATCH] Always round order pane $limit to 3 digits --- piker/ui/_position.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/ui/_position.py b/piker/ui/_position.py index a2e6c19e..0cf18136 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -294,7 +294,10 @@ class SettingsPane: f'limit must > then current pp: {dsize}' ) # reset position size value - alloc.currency_limit = dsize + alloc.currency_limit = round( + dsize, + ndigits=3, + ) return False alloc.currency_limit = value