diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2011-08-29 11:34:48 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2011-08-29 11:34:48 +0200 |
commit | 3a493ae70f83d7d8549f08c950fe4ce69369a14d (patch) | |
tree | e83e044e0ae095cd37726515b006e10283d1cc36 /include/decimal.h | |
parent | 972aeb03742c025eb0b947ce5917ed21c24c9d7f (diff) | |
parent | f610c5658748ae97a5e2c1e1afbd229f2121a082 (diff) | |
download | mariadb-git-3a493ae70f83d7d8549f08c950fe4ce69369a14d.tar.gz |
merge 5.1 => 5.5
Diffstat (limited to 'include/decimal.h')
-rw-r--r-- | include/decimal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/decimal.h b/include/decimal.h index 7a77b6a23da..0257242d865 100644 --- a/include/decimal.h +++ b/include/decimal.h @@ -21,6 +21,15 @@ typedef enum decimal_round_mode; typedef int32 decimal_digit_t; +/** + intg is the number of *decimal* digits (NOT number of decimal_digit_t's !) + before the point + frac is the number of decimal digits after the point + len is the length of buf (length of allocated space) in decimal_digit_t's, + not in bytes + sign false means positive, true means negative + buf is an array of decimal_digit_t's + */ typedef struct st_decimal_t { int intg, frac, len; my_bool sign; |