mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
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)
|