mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
A lot of fixes to Precision math
Mostly about precision/decimals of the results of the operations
This commit is contained in:
parent
68dd50b10a
commit
2c8e9df232
23 changed files with 417 additions and 241 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue