1
Fork 0
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:
creator1creeper1 2021-08-01 13:06:00 +02:00 committed by Ali Mohammad Pur
parent 31655c9486
commit 97d2a5799e
3 changed files with 167 additions and 0 deletions

View file

@ -10,6 +10,7 @@ set(SOURCES
Calculator.cpp
CalculatorWidget.cpp
Keypad.cpp
KeypadValue.cpp
CalculatorGML.h
)