Swap precision of individual operations

This commit is contained in:
Sasha Koshka 2022-11-23 21:42:55 -05:00
parent 2f2c381d71
commit afe0ed33ca
1 changed files with 9 additions and 0 deletions

View File

@ -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()