Calculator

2021-9-18 About 1 min

# Calculator

class Calculator(skipError, useEval, showEquation)

Represents a Calculator.


# Attributes

# .ans

The prev answer of this calculator.


# .equation

The prev equation of this calculator.


# .skipError

Decide should this calculator use Exception to traceback error.


# .useEval

Decide should this calculator use eval (opens new window) to calculate.


# .showEquation

Decide should this calculator print equation when calculated.


# Methods

# await calculate(equation)

calculate the equation (same as def run())


# calculateEquation()

old codes


# run(equation)

calculate the equation


# getAns()

old codes


# getList()

old codes


# fix()

old codes


# fixList()

old codes


Last update: September 18, 2021 21:04
Contributors: White_Night_awa