package com.changhong.epc.count.service.system.func.set.basic; import com.changhong.epc.count.service.system.func.set.AbsFuncSupper; import com.changhong.epc.count.service.tool.SystemFunTool; import com.googlecode.aviator.runtime.type.AviatorObject; import java.util.Map; /** * 向下取整 * @author wangZX * */ public class FloorIntegerFuntion extends AbsFuncSupper { @Override public AviatorObject call(Map env, AviatorObject arg1) { return getAviatorLong( new Double(Math.floor(SystemFunTool.getNumberVal(arg1, env).doubleValue())).longValue()); } @Override public String getName() { return FUNC_BASIC_GET_FLOOR; } }