Skip to content

Java calculator api that converts string expression to a calculateable mathematical expression and outs a numeric answer

License

Notifications You must be signed in to change notification settings

M2KDevelopments/calql8r-java

Repository files navigation

calql8r-java

Java calculator api that converts string expression to a calculateable mathematical expression and outs a numeric answer

How to use CalQL8R

import calql8r.CalQl8R;

public class Main {
    public static void main(String[] args) {
        
        // Initialize CalQl8R object
        CalQl8R calculator = new CalQl8R();
        
        // Set the expression
        calculator.setExpression("1+1");

        // Get the answer
        String answer = calculator.getAnswer();
  
        // Print out the answer
        System.out.println(answer);
    }
}

About

Java calculator api that converts string expression to a calculateable mathematical expression and outs a numeric answer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages