Arsenic-ATG / Qt-calculator

A simple GUI calculator🧮 built using C++
MIT License
60 stars 43 forks source link

Added more functionality and error checking to the calculator #29

Closed ofekkr1 closed 1 year ago

ofekkr1 commented 1 year ago

Added the option to calculate log(with base 10) and power. Added error checking for log and dividing. For example, the error checking for log looks like this:

else if(button->text()=="Log"){
        if((ui->label->text().toDouble())<=0){
            ui->Error_Label->setText("Error message: Log input cant be less then 0");
        }

Log argument is zero error example Power function example Divide by zero error example

Arsenic-ATG commented 1 year ago

thanks for contributing