Package net.sf.kpex.prolog

Examples of net.sf.kpex.prolog.Real


class RealToken extends Fun
{
  public RealToken(double i)
  {
    super("realToken", new Real(i));
  }
View Full Code Here


        {
          T = new Int((long) r);
        }
        else
        {
          T = new Real(r);
        }
      }
      catch (NumberFormatException e)
      {}
    }
View Full Code Here

      default:
        IO.errmes("bad arithmetic operation <" + op + "> on " + x + " and " + y);
        return 0;
    }
    Num R = Math.floor(r) == r ? (Num) new Int((long) r) : (Num) new Real(r);
    return putArg(3, R, p);
  }
View Full Code Here

TOP

Related Classes of net.sf.kpex.prolog.Real

Copyright © 2018 www.massapicom. 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.