Skip to content

Commit dcbe001

Browse files
author
Artyom Ivanov
committed
fix(int128): Use all 16 decimal digits to represent int128 min/max in double correctly
1 parent 48b38a0 commit dcbe001

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/cvt.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3169,10 +3169,10 @@ Int128 CVT_get_int128(const dsc* desc, SSHORT scale, DecimalStatus decSt, ErrorF
31693169
Decimal128 tmp;
31703170
double d, eps;
31713171

3172-
static const double I128_MIN_dbl = -1.701411834604692e+38;
3173-
static const double I128_MAX_dbl = 1.701411834604692e+38;
3172+
static const double I128_MIN_dbl = -1.7014118346046923e+38;
3173+
static const double I128_MAX_dbl = 1.7014118346046921e+38;
31743174
static const CDecimal128 I128_MIN_dcft("-1.701411834604692317316873037158841E+38", decSt);
3175-
static const CDecimal128 I128_MAX_dcft("1.701411834604692317316873037158841E+38", decSt);
3175+
static const CDecimal128 I128_MAX_dcft( "1.701411834604692317316873037158841E+38", decSt);
31763176
static const CDecimal128 DecFlt_05("0.5", decSt);
31773177

31783178
// adjust exact numeric values to same scaling

0 commit comments

Comments
 (0)