mate 0.0.4 copy "mate: ^0.0.4" to clipboard
mate: ^0.0.4 copied to clipboard

A simple and lightweight math library, that can parse and calculate string expressions.

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.3 (27/10/2021) #

  • Resolved: #8 Native Support

Now, mate is independet from flutter

0.0.2 (26/10/2021) #

  • Resolved: #4 and #5

Now, parser can understand rational numbers and calculate it.

Example:

final String exp = "25,58 * 96 + 44,32";
final double? result = ExpressionParser.calculate(exp); // --> 2500

0.0.1 (25/10/2021) #

Package Logo

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
3
likes
150
points
8
downloads

Publisher

verified publishertheiskaa.com

Weekly Downloads

A simple and lightweight math library, that can parse and calculate string expressions.

Documentation

API reference

License

MIT (license)

More

Packages that depend on mate