Swap precision of individual operations

This commit is contained in:
Sasha Koshka 2022-11-23 21:42:55 -05:00
parent 2f2c381d71
commit afe0ed33ca

View File

@ -242,6 +242,15 @@ func onPress (button stone.Button, modifiers stone.Modifiers) {
redraw() redraw()
application.Draw() application.Draw()
case 'z':
switch selectedExpression.(type) {
case *Operation, nil:
operation := selectedExpression.(*Operation)
operation.floating = !operation.floating
}
redraw()
application.Draw()
case 'Z': case 'Z':
showFloat = !showFloat showFloat = !showFloat
redraw() redraw()