mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 11:39:44 +03:00
53eb35caba
The purpose of this patch is to support addition, subtraction, multiplication and division without using conversion to double. To this end, we use the BigFraction class of LibCrypto. With this solution, we can store values without any losses and forward rounding as the last step before displaying.
18 lines
343 B
CMake
18 lines
343 B
CMake
serenity_component(
|
|
Calculator
|
|
RECOMMENDED
|
|
TARGETS Calculator
|
|
)
|
|
|
|
compile_gml(CalculatorWindow.gml CalculatorGML.h calculator_gml)
|
|
set(SOURCES
|
|
main.cpp
|
|
Calculator.cpp
|
|
CalculatorWidget.cpp
|
|
Keypad.cpp
|
|
CalculatorGML.h
|
|
)
|
|
|
|
serenity_app(Calculator ICON app-calculator)
|
|
target_link_libraries(Calculator LibGUI LibMain)
|