{
double originalValue = ((BigDecimal) ((FloatingPointLiteral) expr).getValue()).doubleValue();
Double absValue = new Double(Math.floor(originalValue));
return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
}
throw new IllegalExpressionOperationException("Math.floor()", expr);
}
else
{
// Relay to the equivalent "floor(expr)" function
return exprFactory.invokeMethod(stmt, null, "floor", null, args);