mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
Calculator: Add KeypadValue class
This commit adds a basic KeypadValue class which abstracts away Keypad's internal representation in a slightly simpler format. This will allow arithmetic operations in the Calculator to not lose any precision. In cases where losing precision is necessary, an explicit conversion operator to double is provided, as well as an explicit constructor from double.
This commit is contained in:
parent
31655c9486
commit
97d2a5799e
3 changed files with 167 additions and 0 deletions
|
@ -10,6 +10,7 @@ set(SOURCES
|
|||
Calculator.cpp
|
||||
CalculatorWidget.cpp
|
||||
Keypad.cpp
|
||||
KeypadValue.cpp
|
||||
CalculatorGML.h
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue