Searched refs:decimals (Results 1 – 3 of 3) sorted by relevance
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | strtod.h | 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() [all …]
|
D | biginteger.h | 45 BigInteger(const Ch* decimals, size_t length) : count_(1) { in BigInteger() argument 51 AppendDecimal64(decimals + i, decimals + i + kMaxDigitPerIteration); in BigInteger() 57 AppendDecimal64(decimals + i, decimals + i + length); in BigInteger()
|
/lvgl-latest/tests/unity/ |
D | unity.c | 372 int decimals; in UnityPrintFloat() local 435 … decimals = ((exponent <= 0) && (exponent >= -(sig_digits + 3))) ? (-exponent) : (sig_digits - 1); in UnityPrintFloat() 436 exponent += decimals; in UnityPrintFloat() 439 while ((decimals > 0) && ((n % 10) == 0)) in UnityPrintFloat() 442 decimals--; in UnityPrintFloat() 447 while ((n != 0) || (digits <= decimals)) in UnityPrintFloat() 456 if (digits == decimals) in UnityPrintFloat()
|