• Home
  • Raw
  • Download

Lines Matching full:digit

121 JSTaggedValue NumberHelper::DoubleToExponential(JSThread *thread, double number, int digit)  in DoubleToExponential()  argument
124 if (digit < 0) { in DoubleToExponential()
127 ss << std::setiosflags(std::ios::scientific) << std::setprecision(digit) << number; in DoubleToExponential()
134 if (digit < 0) { in DoubleToExponential()
151 JSTaggedValue NumberHelper::DoubleToFixed(JSThread *thread, double number, int digit) in DoubleToFixed() argument
154 ss << std::setiosflags(std::ios::fixed) << std::setprecision(digit) << number; in DoubleToFixed()
158 JSTaggedValue NumberHelper::DoubleToPrecision(JSThread *thread, double number, int digit) in DoubleToPrecision() argument
161 return DoubleToFixed(thread, number, digit - 1); in DoubleToPrecision()
166 int radixDigit = digit - logDigit - 1; in DoubleToPrecision()
171 return DoubleToExponential(thread, number, digit - 1); in DoubleToPrecision()
257 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry() local
258 digit = (digit == (radix - 1)) ? 0 : digit + 1; in Carry()
259 return CHARS[digit]; in Carry()
363 ASSERT(0 <= digitFast && digitFast <= 9); // 9: single digit max in NumberToString()
383 // 0x0030 (DIGIT ZERO). in NumberToString()
392 …// 8. If −6 < n ≤ 0, return the String consisting of the code unit 0x0030 (DIGIT ZERO), followed b… in NumberToString()
393 …// unit 0x002E (FULL STOP), followed by −n occurrences of the code unit 0x0030 (DIGIT ZERO), follo… in NumberToString()
399 … // 9. Otherwise, if k = 1, return the String consisting of the code unit of the single digit of s in NumberToString()
591 uint8_t digit; in StringToDouble() local
592 while ((digit = ToDigit(*p)) < radix) { in StringToDouble()
596 … additionalExponent = additionalExponent * static_cast<int>(radix) + static_cast<int>(digit); in StringToDouble()
640 uint8_t digit = ToDigit(static_cast<uint8_t>(*p)); in Strtod() local
641 if (digit >= radix) { in Strtod()
645 number = number * radix + digit; in Strtod()