Maths { @UserFunction @Description("apoc.math.maxDouble() | return the largest positive finite value of type double") public Double maxDouble(){ return Double.MAX_VALUE; }  @UserFunction @Description("apoc.math.round(value,[prec],mode=[CEILING,FLOOR,UP,DOWN,HALF_EVEN,HALF_DOWN,HALF_UP,DOWN,UNNECESSARY])") Double round(@Name("value") Double value,
                        @Name(value = "precision",defaultValue = "0") long precision,
                        @Name(value = "mode",defaultValue = "HALF_UP") String mode); @UserFunction @Description("apoc.math.maxLong() | return the maximum value a long can have") Long maxLong(); @UserFunction @Description("apoc.math.minLong() | return the minimum value a long can have") Long minLong(); @UserFunction @Description("apoc.math.maxDouble() | return the largest positive finite value of type double") Double maxDouble(); @UserFunction @Description("apoc.math.minDouble() | return the smallest positive nonzero value of type double") Double minDouble(); @UserFunction @Description("apoc.math.maxInt() | return the maximum value an int can have") Long maxInt(); @UserFunction @Description("apoc.math.minInt() | return the minimum value an int can have") Long minInt(); @UserFunction @Description("apoc.math.maxByte() | return the maximum value an byte can have") Long maxByte(); @UserFunction @Description("apoc.math.minByte() | return the minimum value an byte can have") Long minByte();  }
@Test public void testMaxDouble(){ testCall(db, "RETURN apoc.math.maxDouble() as max",(row) -> assertEquals(Double.MAX_VALUE,row.get("max"))); }