Lines Matching full:estimated_power
52 // Computes v / 10^estimated_power exactly, as a ratio of two bignums, numerator
55 int estimated_power,
66 static void FixupMultiply10(int estimated_power, bool is_even,
97 // estimated_power might be too low by 1.
98 int estimated_power = EstimatePower(normalized_exponent);
104 if (mode == BIGNUM_DTOA_FIXED && -estimated_power - 1 > requested_digits) {
124 InitialScaledStartValues(v, estimated_power, need_boundary_deltas,
127 // We now have v = (numerator / denominator) * 10^estimated_power.
128 FixupMultiply10(estimated_power, is_even, decimal_point,
401 double v, int estimated_power, bool need_boundary_deltas,
405 ASSERT(estimated_power >= 0);
406 // Since the estimated_power is positive we simply multiply the denominator
407 // by 10^estimated_power.
412 // denominator = 10^estimated_power.
413 denominator->AssignPowerUInt16(10, estimated_power);
447 double v, int estimated_power, bool need_boundary_deltas,
452 // v = f * 2^e with e < 0, and with estimated_power >= 0.
453 // This means that e is close to 0 (have a look at how estimated_power is
460 // denominator = 10^estimated_power * 2^-exponent (with exponent < 0)
461 denominator->AssignPowerUInt16(10, estimated_power);
481 // (otherwise estimated_power would have been negative) this cannot happen
497 double v, int estimated_power, bool need_boundary_deltas,
504 // Instead of multiplying the denominator with 10^estimated_power we
505 // multiply all values (numerator and deltas) by 10^-estimated_power.
509 power_ten->AssignPowerUInt16(10, -estimated_power);
512 // Since power_ten == numerator we must make a copy of 10^estimated_power
514 // delta_plus = delta_minus = 10^estimated_power
519 // numerator = significand * 2 * 10^-estimated_power
521 // numerator = v * 10^-estimated_power * 2 * 2^-exponent.
537 // delta_plus = 10^-estimated_power, and
538 // delta_minus = 10^-estimated_power.
557 // Computes v / 10^estimated_power exactly, as a ratio of two bignums, numerator
561 // Then d * 10^estimated_power is the representation of v.
562 // (Note: the fraction and the estimated_power might get adjusted before
566 // - a scaled numerator: s.t. numerator/denominator == v / 10^estimated_power.
575 // Let ep == estimated_power, then the returned values will satisfy:
584 // Since 10^(k-1) <= v < 10^k (with k == estimated_power)
593 int estimated_power,
601 v, estimated_power, need_boundary_deltas,
603 } else if (estimated_power >= 0) {
605 v, estimated_power, need_boundary_deltas,
609 v, estimated_power, need_boundary_deltas,
620 // numerator / denominator * 10^estimated_power ==
622 // In some cases estimated_power was too low, and this is already the case. We
624 // estimated_power) but do not touch the numerator or denominator.
626 static void FixupMultiply10(int estimated_power, bool is_even,
640 // 1 <= numerator/denominator < 10. Simply update the estimated_power.
641 *decimal_point = estimated_power + 1;
643 *decimal_point = estimated_power;