Lines Matching refs:decimals
132 inline bool StrtodDiyFp(const Ch* decimals, int dLen, int dExp, double* result) { in StrtodDiyFp() argument
137 (significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] > Ch('5'))) in StrtodDiyFp()
139 significand = significand * 10u + static_cast<unsigned>(decimals[i] - Ch('0')); in StrtodDiyFp()
142 if (i < dLen && decimals[i] >= Ch('5')) // Rounding in StrtodDiyFp()
210 inline double StrtodBigInteger(double approx, const Ch* decimals, int dLen, int dExp) { in StrtodBigInteger() argument
212 const BigInteger dInt(decimals, static_cast<unsigned>(dLen)); in StrtodBigInteger()
229 inline double StrtodFullPrecision(double d, int p, const Ch* decimals, size_t length, size_t decima… in StrtodFullPrecision() argument
251 while (dLen > 0 && *decimals == '0') { in StrtodFullPrecision()
253 decimals++; in StrtodFullPrecision()
257 while (dLen > 0 && decimals[dLen - 1] == '0') { in StrtodFullPrecision()
283 if (StrtodDiyFp(decimals, dLen, dExp, &result)) in StrtodFullPrecision()
287 return StrtodBigInteger(result, decimals, dLen, dExp); in StrtodFullPrecision()