1 33 package smallsql.database; 34 35 36 class ExpressionFunctionFloor extends ExpressionFunctionReturnP1Number { 37 38 int getFunction(){ return SQLTokenizer.FLOOR; } 39 40 41 double getDouble() throws Exception { 42 return Math.floor( param1.getDouble() ); 43 } 44 45 46 String getString() throws Exception { 47 Object obj = getObject(); 48 if(obj == null) return null; 49 return obj.toString(); 50 } 51 52 53 } | Popular Tags |