00001 package com.graphbuilder.math.func; 00002 00008 public class FloorFunction implements Function { 00009 00010 public FloorFunction() {} 00011 00015 public double of(double[] d, int numParam) { 00016 return java.lang.Math.floor(d[0]); 00017 } 00018 00022 public boolean acceptNumParam(int numParam) { 00023 return numParam == 1; 00024 } 00025 00026 public String toString() { 00027 return "floor(x)"; 00028 } 00029 }