Lines Matching defs:digit
160 uint32_t digit = 0;
162 digit = n % radix;
164 buf[index] = ToCharCode(digit) + 0X00;
199 int64_t digit = std::floor(fraction);
200 fraction -= digit;
201 buffer[fractionCursor++] = CHARS[digit];
422 JSTaggedValue NumberHelper::DoubleToPrecisionString(JSThread *thread, double number, int digit)
425 return DoubleToFixedString(thread, number, digit - 1);
429 int radixDigit = digit - logDigit - 1;
431 if ((logDigit >= MIN_EXPONENT_DIGIT && logDigit < digit)) {
434 return DoubleToExponential(thread, number, digit);
437 JSTaggedValue NumberHelper::DoubleToExponential(JSThread *thread, double number, int digit)
441 if (digit == 0) {
462 int result = snprintf_s(tmpbuf, sizeof(tmpbuf), sizeof(tmpbuf) - 1, "%.*e", digit - 1, number);
473 if (digit < 0) {
663 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0'));
664 digit = (digit == (radix - 1)) ? 0 : digit + 1;
665 return CHARS[digit];
1043 uint8_t digit;
1044 while ((digit = ToDigit(*p)) < radix) {
1048 additionalExponent = additionalExponent * static_cast<int>(radix) + static_cast<int>(digit);
1092 uint8_t digit = ToDigit(static_cast<uint8_t>(*p));
1093 if (digit >= radix) {
1097 number = number * radix + digit;
1300 // If the character string contains non-digit chaaracters