From afe0ed33cabccfefd84066c17070df35b06d1837 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 23 Nov 2022 21:42:55 -0500 Subject: [PATCH] Swap precision of individual operations --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.go b/main.go index 3e6b1ad..7707e4c 100644 --- a/main.go +++ b/main.go @@ -242,6 +242,15 @@ func onPress (button stone.Button, modifiers stone.Modifiers) { redraw() application.Draw() + case 'z': + switch selectedExpression.(type) { + case *Operation, nil: + operation := selectedExpression.(*Operation) + operation.floating = !operation.floating + } + redraw() + application.Draw() + case 'Z': showFloat = !showFloat redraw()