~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/decimal.h

  • Committer: Monty Taylor
  • Date: 2009-09-23 17:40:57 UTC
  • mfrom: (1099.4.60)
  • mto: This revision was merged to the branch mainline in revision 1141.
  • Revision ID: mordred@inaugust.com-20090923174057-wuvqhk19h43no9wz
Merged translations from launchpad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#ifndef _decimal_h
17
17
#define _decimal_h
18
18
 
 
19
#if defined(__cplusplus)
 
20
extern "C" {
 
21
#endif
 
22
 
19
23
typedef enum
20
24
{TRUNCATE=0, HALF_EVEN, HALF_UP, CEILING, FLOOR}
21
25
  decimal_round_mode;
39
43
int decimal2double(decimal_t *from, double *to);
40
44
int double2decimal(double from, decimal_t *to);
41
45
int decimal_actual_fraction(decimal_t *from);
42
 
int decimal2bin(decimal_t *from, uchar *to, int precision, int scale);
43
 
int bin2decimal(const uchar *from, decimal_t *to, int precision, int scale);
 
46
int decimal2bin(decimal_t *from, unsigned char *to, int precision, int scale);
 
47
int bin2decimal(const unsigned char *from, decimal_t *to, int precision, int scale);
44
48
 
45
49
int decimal_size(int precision, int scale);
46
50
int decimal_bin_size(int precision, int scale);
103
107
#define E_DEC_ERROR            31
104
108
#define E_DEC_FATAL_ERROR      30
105
109
 
 
110
#if defined(__cplusplus)
 
111
}
 
112
#endif
 
113
 
106
114
#endif
107
115