24 #include <drizzled/type/decimal.h>
32 switch (args[0]->result_type()) {
41 dec->val_int32(E_DEC_FATAL_ERROR, unsigned_flag, &result);
58 volatile double value= args[0]->
val_real();
68 class_decimal_floor(E_DEC_FATAL_ERROR, value,
virtual int64_t val_int()=0
TODO: Rename this file - func.h is stupid.
virtual double val_real()=0
int64_t int_op()
Performs the operation that this functions implements when the result type is INT.
virtual type::Decimal * val_decimal(type::Decimal *decimal_buffer)=0
double real_op()
Performs the operation that this functions implements when the result type is REAL.
type::Decimal * decimal_op(type::Decimal *)
Performs the operation that this functions implements when the result type is DECIMAL.