24#include <drizzled/type/decimal.h>
31 double value= args[0]->val_real();
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);
60void Item_func_abs::fix_length_and_dec()
62 Item_func_num1::fix_length_and_dec();
63 unsigned_flag= args[0]->unsigned_flag;
type::Decimal * decimal_op(type::Decimal *)
Performs the operation that this functions implements when the result type is DECIMAL.
int64_t int_op()
Performs the operation that this functions implements when the result type is INT.
double real_op()
Performs the operation that this functions implements when the result type is REAL.
TODO: Rename this file - func.h is stupid.