1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

A lot of fixes to Precision math

Mostly about precision/decimals of the results of the operations
This commit is contained in:
holyfoot@hf-ibm.(none)
2005-05-05 20:06:49 +05:00
parent 68dd50b10a
commit 2c8e9df232
23 changed files with 417 additions and 241 deletions

View File

@@ -39,7 +39,7 @@ int decimal2longlong(decimal_t *from, longlong *to);
int longlong2decimal(longlong from, decimal_t *to);
int decimal2double(decimal_t *from, double *to);
int double2decimal(double from, decimal_t *to);
void decimal_optimize_fraction(decimal_t *from);
int decimal_actual_fraction(decimal_t *from);
int decimal2bin(decimal_t *from, char *to, int precision, int scale);
int bin2decimal(char *from, decimal_t *to, int precision, int scale);