All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jaskell.expression.Divide Maven / Gradle / Ivy

Go to download

This is a utils library for java 8 project. It include parsec combinators and sql generators library.

There is a newer version: 2.9.2
Show newest version
package jaskell.expression;

/**
 * TODO
 *
 * @author mars
 * @version 1.0.0
 * @since 2020/06/04 10:57
 */
public class Divide extends Binary {
  public Divide(Expression left, Expression right) {
    this.left = left;
    this.right = right;
  }

  @Override
  public double eval(Env env) throws ExpressionException {
    return left.eval(env) / right.eval(env);
  }

  @Override
  public int getPriority() {
    return 2;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy