1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-21 19:51:00 +00:00
serenity/Userland/Applications/Calculator
creator1creeper1 cacac7927b Calculator: Construct KeypadValue precisely from the Clipboard contents
Previously, we would use lossy strtod() conversion. This was bad,
especially since we switched from internally storing Calculator
state in a double to storing it in the KeypadValue class
some time ago. This commit adds a constructor for the KeypadValue
class that is not lossy by using strtoll(). It handles numbers
with and without decimal points as well as negative numbers
correctly.
2021-12-21 13:22:12 -08:00
..
Calculator.cpp Calculator: Use KeypadValue class instead of double 2021-08-03 19:12:06 +04:30
Calculator.h Calculator: Use KeypadValue class instead of double 2021-08-03 19:12:06 +04:30
CalculatorWidget.cpp Calculator: The equal key will now also finish the operation 2021-08-26 17:35:15 +02:00
CalculatorWidget.h Calculator: Use KeypadValue class instead of double 2021-08-03 19:12:06 +04:30
CalculatorWindow.gml Userland+LibGUI: Add shorthand versions of the Margins constructor 2021-08-18 10:30:50 +02:00
CMakeLists.txt Calculator: Port to LibMain :^) 2021-11-24 00:25:23 +01:00
Keypad.cpp Calculator: Use KeypadValue class instead of double 2021-08-03 19:12:06 +04:30
Keypad.h Calculator: Use KeypadValue class instead of double 2021-08-03 19:12:06 +04:30
KeypadValue.cpp Calculator: Construct KeypadValue precisely from the Clipboard contents 2021-12-21 13:22:12 -08:00
KeypadValue.h Calculator: Construct KeypadValue precisely from the Clipboard contents 2021-12-21 13:22:12 -08:00
main.cpp Calculator: Construct KeypadValue precisely from the Clipboard contents 2021-12-21 13:22:12 -08:00