24 #include <drizzled/type/decimal.h>
39 int64_t value= args[0]->
val_int();
42 return (value >= 0) || unsigned_flag ? value : -value;
51 class_decimal2decimal(value, decimal_value);
52 if (decimal_value->sign())
53 class_decimal_neg(decimal_value);
60 void Item_func_abs::fix_length_and_dec()
62 Item_func_num1::fix_length_and_dec();
63 unsigned_flag= args[0]->unsigned_flag;
virtual int64_t val_int()=0
int64_t int_op()
Performs the operation that this functions implements when the result type is INT.
type::Decimal * decimal_op(type::Decimal *)
Performs the operation that this functions implements when the result type is DECIMAL.
virtual double val_real()=0
double real_op()
Performs the operation that this functions implements when the result type is REAL.
virtual type::Decimal * val_decimal(type::Decimal *decimal_buffer)=0