mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:17:45 +00:00
Calculator: Use new GML compiler
This commit is contained in:
parent
182126dfda
commit
15a539a5b0
7 changed files with 84 additions and 63 deletions
|
@ -10,6 +10,8 @@
|
|||
#include <AK/Math.h>
|
||||
#include <LibCrypto/BigFraction/BigFraction.h>
|
||||
|
||||
namespace Calculator {
|
||||
|
||||
Optional<Crypto::BigFraction> Calculator::operation_with_literal_argument(Operation operation, Crypto::BigFraction argument)
|
||||
{
|
||||
// Support binary operations with percentages, for example "2+3%" == 2.06
|
||||
|
@ -169,3 +171,5 @@ void Calculator::clear_operation()
|
|||
m_binary_operation_saved_left_side.set_to_0();
|
||||
clear_error();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue