Home
last modified time | relevance | path

Searched refs:dropDigits (Results 1 – 1 of 1) sorted by relevance

/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorResult.java410 int dropDigits; // Digits to drop to make room for exponent. in formatResult() local
414 dropDigits = expLen(exponent); in formatResult()
415 if (dropDigits >= result.length() - 1) { in formatResult()
417 dropDigits = Math.max(result.length() - 2, 0); in formatResult()
423 for (dropDigits = 2; expLen(initExponent + dropDigits) > dropDigits; in formatResult()
424 ++dropDigits) {} in formatResult()
425 exponent = initExponent + dropDigits; in formatResult()
426 if (precOffset - dropDigits > mLsdOffset) { in formatResult()
431 ++dropDigits; in formatResult()
435 result = result.substring(0, result.length() - dropDigits); in formatResult()
[all …]