Package org.eclipse.xtext.xdoc.generator.util.numeric

Source Code of org.eclipse.xtext.xdoc.generator.util.numeric.XFloatExtensions

package org.eclipse.xtext.xdoc.generator.util.numeric;

import org.eclipse.xtext.xdoc.generator.util.XFloat;

public class XFloatExtensions {

  public static XFloat operator_divide(Integer a, XFloat b) {
    return new XFloat(a / b.toFloat());
  }

  public static Boolean operator_greaterThan(Integer a, XFloat b) {
    return a > b.toFloat();
  }

  public static Boolean operator_greaterThan(XFloat a, Integer b) {
    return a.toFloat() > b;
  }
}
TOP

Related Classes of org.eclipse.xtext.xdoc.generator.util.numeric.XFloatExtensions

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.