Add money_format function (#1064)

This commit is contained in:
kangkaisen
2019-04-29 18:31:24 +08:00
committed by ZHAO Chun
parent 9a570af9a3
commit b2a022b348
9 changed files with 372 additions and 99 deletions

View File

@ -69,7 +69,7 @@ const double log_10[] = {
#define ARRAY_ELEMENTS(A) ((uint64_t) (sizeof(A)/sizeof(A[0])))
static double my_double_round(double value, int64_t dec, bool dec_unsigned, bool truncate) {
double MathFunctions::my_double_round(double value, int64_t dec, bool dec_unsigned, bool truncate) {
bool dec_negative = (dec < 0) && !dec_unsigned;
uint64_t abs_dec = dec_negative ? -dec : dec;
/*