1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:47:44 +00:00

Calculator: Add a "Custom" entry to the rounding menu

This entry pop a dialog to ask the user to enter a value. The Calculator
will automatically put itself in this mode if you enter a number with
more digits in the fractional part than the actual maximum length.
This commit is contained in:
Lucas CHOLLET 2022-09-22 16:55:04 +02:00 committed by Tim Flynn
parent de568f87fd
commit e3b22c395d
8 changed files with 157 additions and 10 deletions

View file

@ -21,7 +21,7 @@ public:
Keypad() = default;
~Keypad() = default;
void type_digit(int digit);
unsigned type_digit(int digit);
void type_decimal_point();
void type_backspace();
@ -30,6 +30,7 @@ public:
void set_to_0();
void set_rounding_length(unsigned);
unsigned rounding_length() const;
String to_string() const;