}\r
\r
});\r
- model.functions.put("floorDiv", new Fn1(2) {\r
\r
- @Override\r
- public Object evaluate(IEnvironment environment, int argc) {\r
- Integer x = (Integer)environment.getValue(0);\r
- Integer y = (Integer)environment.getValue(1);\r
- return Math.floorDiv(x, y);\r
- }\r
- \r
- });\r
- model.functions.put("floorMod", new Fn1(2) {\r
-\r
- @Override\r
- public Object evaluate(IEnvironment environment, int argc) {\r
- Integer x = (Integer)environment.getValue(0);\r
- Integer y = (Integer)environment.getValue(1);\r
- return Math.floorMod(x, y);\r
- }\r
- \r
- });\r
model.functions.put("abs", new Fn1(2) {\r
\r
@Override\r
\r
});\r
\r
- model.functions.put("nextDown", new Fn1(2) {\r
-\r
- @Override\r
- public Object evaluate(IEnvironment environment, int argc) {\r
- Double x = (Double)environment.getValue(0);\r
- return Math.nextDown(x);\r
- }\r
- \r
- });\r
-\r
model.functions.put("scalb", new Fn1(2) {\r
\r
@Override\r