mate 0.0.5 mate: ^0.0.5 copied to clipboard
A simple and lightweight math library, that can parse and calculate string expressions.
0.0.5 - (29/11/2021) #
Now, mate has 2x clean and fast parsing structure, It converts given expression to tokens list, and by using that list expression class can calculate the final result. However, it looks like an interpreter now.
And also mate can calculate highly-nested (with parentheses) expressions.
Example:
final String exp = "((4 + 5) * ((2 * 2) + 2)) / (1.5 * 2)"
final double? result = mate.calculate(exp); // --> 18
0.0.4 - (29/10/2021) #
- Resolved: #10 Percentage Calculation Support
Now, mate can calculate [X]'s [Y] percent (from string)
Example:
final String exp = "10 % 2";
final double? result = expressionParser.calculate(exp); // --> 0,2
0.0.2 - (26/10/2021) #
0.0.1 - (25/10/2021) #
The very first version of "Mate", that can calculate expressions written as string format.
Example:
final String exp = "-2 + 5 + 10 * 2";
final double? result = expressionParser.calculate(exp); // --> 23