diff options
author | unknown <serg@serg.mylan> | 2004-10-31 13:15:44 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-10-31 13:15:44 +0100 |
commit | 6924450368bf5cd41a8337e54d9234390790fc2b (patch) | |
tree | ffc2ee3b8a4000f9f647dcec4a7922f48aa4b48b /include/decimal.h | |
parent | bb72d0a06e72c506138cf9eda51a741f2346be09 (diff) | |
download | mariadb-git-6924450368bf5cd41a8337e54d9234390790fc2b.tar.gz |
new round mode - half_up
Diffstat (limited to 'include/decimal.h')
-rw-r--r-- | include/decimal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/decimal.h b/include/decimal.h index 5ff0a18f085..2de62af140d 100644 --- a/include/decimal.h +++ b/include/decimal.h @@ -19,7 +19,7 @@ #include <my_global.h> -typedef enum {TRUNCATE=0, EVEN} dec_round_mode; +typedef enum {TRUNCATE=0, HALF_EVEN, HALF_UP} decimal_round_mode; typedef int32 decimal_digit; typedef struct st_decimal { @@ -50,7 +50,7 @@ int decimal_cmp(decimal *from1, decimal *from2); int decimal_mul(decimal *from1, decimal *from2, decimal *to); int decimal_div(decimal *from1, decimal *from2, decimal *to, int scale_incr); int decimal_mod(decimal *from1, decimal *from2, decimal *to); -int decimal_round(decimal *from, decimal *to, int new_scale, dec_round_mode mode); +int decimal_round(decimal *from, decimal *to, int new_scale, decimal_round_mode mode); /* the following works only on special "zero" decimal, not on any |