9 Commits

Author SHA1 Message Date
Sad Ellie
78f9d59fd8 Big viewmodel refactor
(squashed)
2023-01-04 12:20:06 +04:00
Sad Ellie
16b8bd35a3 Fix (?) for input conversion (#12)
- Now doing conversion in coroutine.
- Little refactor for MainViewModel
- Text fields are limited to 1000 symbols now

- Little bug added. Conversion result can get really slow when converting extremely large numbers 99^999999 (like really big). Very rare case and user would probably never enter such values. Can't find a proper fix yet.
2022-12-24 13:45:00 +04:00
Sad Ellie
1f35763893 More readable code for input processing tests 2022-12-11 00:12:09 +04:00
Sad Ellie
86596f23c0 Add multiply symbol where needed 2022-12-10 18:06:57 +04:00
Sad Ellie
669e2a0c19 More rules for input processing 2022-12-09 21:28:31 +04:00
Sad Ellie
51961d5f68 Buttons are now always enabled (visually).
Disabled buttons states are useless and make it difficult to modify app theme.
2022-12-08 16:11:39 +04:00
Sad Ellie
ffd4284f55 Improved support for exponent and square root in input processing 2022-12-08 14:11:42 +04:00
Sad Ellie
7d2917d942 Introduced helpers for tests 2022-12-08 13:10:09 +04:00
Sad Ellie
aff3cd4ca3 Back to ExprK.
Added more operators for calculator. Formatting and other stuff are broken.

P.S. Using my own fork of ExprK. Added square root operator to it.
2022-12-07 20:52:17 +04:00