mirror of
https://github.com/RGBCube/serenity
synced 2026-01-21 19:51:00 +00:00
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. |
||
|---|---|---|
| .. | ||
| Calculator.cpp | ||
| Calculator.h | ||
| CalculatorWidget.cpp | ||
| CalculatorWidget.h | ||
| CalculatorWindow.gml | ||
| CMakeLists.txt | ||
| Keypad.cpp | ||
| Keypad.h | ||
| KeypadValue.cpp | ||
| KeypadValue.h | ||
| main.cpp | ||