String Math Expression Calculator

String Math Expression Calculator

Released 4 years ago , Last update 4 years ago

Calculates string math expressions from user input or other sources. Includes calculator UI component for out of the box usefulness.

Expression calculator

  • Ease to use: Calc.eval("(100+1)*(100-1)"); // returns 9999
  • Supported parentheses. For example:2*(5-3)
  • BigDecimal numbers. For example: 1000000000000000000000000+2000000000000000000000000 // One Septillion + Two Septillion
  • Simple ready-to-use UI component included (with full source code for customization):

simple calculator

Pricing

$7.99

Modified Personal License

  • Perpetual license

  • Unlimited projects

  • Can distribute code and binary products

  • Commercial use

Sample

Use UI Component:

import com.programmisty.calc.*;

public class Sample1 {
    public static void main(String a[]) throws Exception {
       // Change UI Look And Feel (If needed)  //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
        JFrame frame = new JFrame("Simple Calculator");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        // Important! ADD CALCULATOR PANEL
        frame.getContentPane().add(new CalculatorPanel());
        frame.pack();
        frame.setVisible(true);
    }
}

Use API :

import com.programmisty.calc.*;
import java.math.BigDecimal;
public class Sample2 {
    public static void main(String args[]) throws Exception {
           BigDecimal a = Calc.eval("100+100/5");
           double x = Calc.deval("100+100/4");
           int y = Calc.ieval("100+100/4");
    }
}
1 license From » $7.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
  • RG Roedy Green 3 years ago
    This would be even more useful as a posted applet so you could use it without installing.