BasicCalulator have two methods:
long calculateInt(String expression);
double calculateFloat(String expression);
Now BasicCalculator can calculate expressions with:
- +
- - (unary minus can be in parentheses or in beginning of expression)
- *
- /
- ()
- and numbers in 10-radix(integer, fractional available only in calculateFloat)