~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/real.h

  • Committer: Brian Aker
  • Date: 2008-11-03 03:49:00 UTC
  • mfrom: (520.4.50 devel)
  • Revision ID: brian@tangent.org-20081103034900-znhvcgtipr3tlel5
Merging in Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
  Item_real_func(List<Item> &list) :Item_func(list) {}
32
32
  String *val_str(String*str);
33
33
  my_decimal *val_decimal(my_decimal *decimal_value);
34
 
  int64_t val_int()
35
 
    { assert(fixed == 1); return (int64_t) rint(val_real()); }
 
34
  int64_t val_int();
36
35
  enum Item_result result_type () const { return REAL_RESULT; }
37
 
  void fix_length_and_dec()
38
 
  { decimals= NOT_FIXED_DEC; max_length= float_length(decimals); }
 
36
  void fix_length_and_dec();
39
37
};
40
38
 
41
39
#endif /* DRIZZLED_FUNCTIONS_REAL_H */